@harmoniclabs/monaco-editor 0.1.0-dev2 → 0.1.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/languages/amd-tsc/basic-languages/pebble/pebble.js +23 -52
- package/out/languages/amd-tsc/basic-languages/pebble/pebble.js.map +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/abap/abap.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/apex/apex.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/azcli/azcli.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/bat/bat.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/bicep/bicep.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/cameligo/cameligo.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/clojure/clojure.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/coffee/coffee.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/cpp/cpp.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/csharp/csharp.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/csp/csp.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/css/css.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/cypher/cypher.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/dart/dart.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/dockerfile/dockerfile.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/ecl/ecl.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/elixir/elixir.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/flow9/flow9.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/freemarker2/freemarker2.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/fsharp/fsharp.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/go/go.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/graphql/graphql.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/handlebars/handlebars.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/hcl/hcl.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/html/html.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/ini/ini.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/java/java.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/javascript/javascript.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/julia/julia.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/kotlin/kotlin.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/less/less.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/lexon/lexon.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/liquid/liquid.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/lua/lua.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/m3/m3.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/markdown/markdown.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/mdx/mdx.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/mips/mips.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/monaco.contribution.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/msdax/msdax.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/mysql/mysql.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/objective-c/objective-c.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/pascal/pascal.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/pascaligo/pascaligo.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/pebble/pebble.js +25 -55
- package/out/languages/bundled/amd-dev/vs/basic-languages/perl/perl.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/pgsql/pgsql.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/php/php.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/pla/pla.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/postiats/postiats.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/powerquery/powerquery.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/powershell/powershell.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/protobuf/protobuf.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/pug/pug.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/python/python.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/qsharp/qsharp.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/r/r.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/razor/razor.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/redis/redis.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/redshift/redshift.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/ruby/ruby.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/rust/rust.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/sb/sb.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/scala/scala.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/scheme/scheme.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/scss/scss.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/shell/shell.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/solidity/solidity.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/sophia/sophia.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/sparql/sparql.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/sql/sql.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/st/st.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/swift/swift.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/systemverilog/systemverilog.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/tcl/tcl.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/twig/twig.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/typescript/typescript.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/typespec/typespec.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/vb/vb.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/wgsl/wgsl.js +1 -1
- package/out/languages/bundled/amd-dev/vs/basic-languages/xml/xml.js +2 -3
- package/out/languages/bundled/amd-dev/vs/basic-languages/yaml/yaml.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/css/cssMode.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/css/cssWorker.js +257 -296
- package/out/languages/bundled/amd-dev/vs/language/css/monaco.contribution.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/html/htmlMode.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/html/htmlWorker.js +107 -144
- package/out/languages/bundled/amd-dev/vs/language/html/monaco.contribution.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/json/jsonMode.js +10 -3
- package/out/languages/bundled/amd-dev/vs/language/json/jsonWorker.js +72 -102
- package/out/languages/bundled/amd-dev/vs/language/json/monaco.contribution.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/typescript/monaco.contribution.js +2 -3
- package/out/languages/bundled/amd-dev/vs/language/typescript/tsMode.js +3 -5
- package/out/languages/bundled/amd-dev/vs/language/typescript/tsWorker.js +6 -6
- package/out/languages/bundled/amd-min/vs/basic-languages/abap/abap.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/apex/apex.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/azcli/azcli.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/bat/bat.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/bicep/bicep.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/cameligo/cameligo.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/clojure/clojure.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/coffee/coffee.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/cpp/cpp.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/csharp/csharp.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/csp/csp.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/css/css.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/cypher/cypher.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/dart/dart.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/dockerfile/dockerfile.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/ecl/ecl.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/elixir/elixir.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/flow9/flow9.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/freemarker2/freemarker2.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/fsharp/fsharp.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/go/go.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/graphql/graphql.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/handlebars/handlebars.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/hcl/hcl.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/html/html.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/ini/ini.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/java/java.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/javascript/javascript.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/julia/julia.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/kotlin/kotlin.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/less/less.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/lexon/lexon.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/liquid/liquid.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/lua/lua.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/m3/m3.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/markdown/markdown.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/mdx/mdx.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/mips/mips.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/monaco.contribution.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/msdax/msdax.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/mysql/mysql.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/objective-c/objective-c.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/pascal/pascal.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/pascaligo/pascaligo.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/pebble/pebble.js +2 -2
- package/out/languages/bundled/amd-min/vs/basic-languages/perl/perl.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/pgsql/pgsql.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/php/php.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/pla/pla.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/postiats/postiats.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/powerquery/powerquery.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/powershell/powershell.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/protobuf/protobuf.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/pug/pug.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/python/python.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/qsharp/qsharp.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/r/r.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/razor/razor.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/redis/redis.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/redshift/redshift.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/ruby/ruby.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/rust/rust.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/sb/sb.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/scala/scala.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/scheme/scheme.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/scss/scss.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/shell/shell.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/solidity/solidity.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/sophia/sophia.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/sparql/sparql.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/sql/sql.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/st/st.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/swift/swift.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/systemverilog/systemverilog.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/tcl/tcl.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/twig/twig.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/typescript/typescript.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/typespec/typespec.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/vb/vb.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/wgsl/wgsl.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/xml/xml.js +1 -1
- package/out/languages/bundled/amd-min/vs/basic-languages/yaml/yaml.js +1 -1
- package/out/languages/bundled/amd-min/vs/language/css/cssMode.js +2 -2
- package/out/languages/bundled/amd-min/vs/language/css/cssWorker.js +6 -6
- package/out/languages/bundled/amd-min/vs/language/css/monaco.contribution.js +1 -1
- package/out/languages/bundled/amd-min/vs/language/html/htmlMode.js +2 -2
- package/out/languages/bundled/amd-min/vs/language/html/htmlWorker.js +9 -9
- package/out/languages/bundled/amd-min/vs/language/html/monaco.contribution.js +1 -1
- package/out/languages/bundled/amd-min/vs/language/json/jsonMode.js +2 -2
- package/out/languages/bundled/amd-min/vs/language/json/jsonWorker.js +2 -2
- package/out/languages/bundled/amd-min/vs/language/json/monaco.contribution.js +1 -1
- package/out/languages/bundled/amd-min/vs/language/typescript/monaco.contribution.js +1 -1
- package/out/languages/bundled/amd-min/vs/language/typescript/tsMode.js +1 -1
- package/out/languages/bundled/amd-min/vs/language/typescript/tsWorker.js +16 -16
- package/out/languages/bundled/esm/vs/basic-languages/_.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/abap/abap.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/abap/abap.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/apex/apex.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/apex/apex.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/azcli/azcli.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/azcli/azcli.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/bat/bat.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/bat/bat.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/bicep/bicep.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/bicep/bicep.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/cameligo/cameligo.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/cameligo/cameligo.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/clojure/clojure.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/clojure/clojure.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/coffee/coffee.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/coffee/coffee.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/cpp/cpp.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/cpp/cpp.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/csharp/csharp.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/csharp/csharp.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/csp/csp.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/csp/csp.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/css/css.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/css/css.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/cypher/cypher.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/cypher/cypher.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/dart/dart.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/dart/dart.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/dockerfile/dockerfile.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/ecl/ecl.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/ecl/ecl.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/elixir/elixir.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/elixir/elixir.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/flow9/flow9.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/flow9/flow9.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/freemarker2/freemarker2.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/fsharp/fsharp.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/fsharp/fsharp.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/go/go.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/go/go.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/graphql/graphql.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/graphql/graphql.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/handlebars/handlebars.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/handlebars/handlebars.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/hcl/hcl.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/hcl/hcl.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/html/html.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/html/html.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/ini/ini.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/ini/ini.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/java/java.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/java/java.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/javascript/javascript.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/javascript/javascript.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/julia/julia.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/julia/julia.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/kotlin/kotlin.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/kotlin/kotlin.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/less/less.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/less/less.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/lexon/lexon.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/lexon/lexon.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/liquid/liquid.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/liquid/liquid.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/lua/lua.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/lua/lua.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/m3/m3.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/m3/m3.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/markdown/markdown.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/markdown/markdown.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/mdx/mdx.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/mdx/mdx.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/mips/mips.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/mips/mips.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/monaco.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/msdax/msdax.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/msdax/msdax.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/mysql/mysql.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/mysql/mysql.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/objective-c/objective-c.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/objective-c/objective-c.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pascal/pascal.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pascal/pascal.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pascaligo/pascaligo.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pebble/pebble.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pebble/pebble.js +24 -53
- package/out/languages/bundled/esm/vs/basic-languages/perl/perl.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/perl/perl.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pgsql/pgsql.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pgsql/pgsql.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/php/php.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/php/php.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pla/pla.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pla/pla.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/postiats/postiats.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/postiats/postiats.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/powerquery/powerquery.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/powerquery/powerquery.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/powershell/powershell.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/powershell/powershell.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/protobuf/protobuf.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/protobuf/protobuf.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pug/pug.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/pug/pug.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/python/python.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/python/python.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/qsharp/qsharp.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/qsharp/qsharp.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/r/r.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/r/r.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/razor/razor.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/razor/razor.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/redis/redis.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/redis/redis.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/redshift/redshift.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/redshift/redshift.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/ruby/ruby.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/ruby/ruby.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/rust/rust.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/rust/rust.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sb/sb.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sb/sb.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/scala/scala.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/scala/scala.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/scheme/scheme.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/scheme/scheme.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/scss/scss.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/scss/scss.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/shell/shell.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/shell/shell.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/solidity/solidity.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/solidity/solidity.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sophia/sophia.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sophia/sophia.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sparql/sparql.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sparql/sparql.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sql/sql.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/sql/sql.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/st/st.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/st/st.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/swift/swift.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/swift/swift.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/systemverilog/systemverilog.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/tcl/tcl.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/tcl/tcl.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/twig/twig.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/twig/twig.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/typescript/typescript.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/typescript/typescript.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/typespec/typespec.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/typespec/typespec.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/vb/vb.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/vb/vb.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/wgsl/wgsl.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/wgsl/wgsl.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/xml/xml.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/xml/xml.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/yaml/yaml.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/basic-languages/yaml/yaml.js +1 -1
- package/out/languages/bundled/esm/vs/language/css/css.worker.js +257 -296
- package/out/languages/bundled/esm/vs/language/css/cssMode.js +1 -1
- package/out/languages/bundled/esm/vs/language/css/monaco.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/language/html/html.worker.js +107 -144
- package/out/languages/bundled/esm/vs/language/html/htmlMode.js +1 -1
- package/out/languages/bundled/esm/vs/language/html/monaco.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/language/json/json.worker.js +72 -102
- package/out/languages/bundled/esm/vs/language/json/jsonMode.js +9 -1
- package/out/languages/bundled/esm/vs/language/json/monaco.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/language/typescript/monaco.contribution.js +1 -1
- package/out/languages/bundled/esm/vs/language/typescript/ts.worker.js +6 -6
- package/out/languages/bundled/esm/vs/language/typescript/tsMode.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/abap/abap.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/apex/apex.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/azcli/azcli.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/bat/bat.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/bicep/bicep.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/cameligo/cameligo.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/clojure/clojure.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/coffee/coffee.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/cpp/cpp.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/csharp/csharp.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/csp/csp.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/css/css.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/cypher/cypher.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/dart/dart.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/dockerfile/dockerfile.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/ecl/ecl.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/elixir/elixir.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/flow9/flow9.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/freemarker2/freemarker2.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/fsharp/fsharp.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/go/go.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/graphql/graphql.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/handlebars/handlebars.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/hcl/hcl.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/html/html.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/ini/ini.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/java/java.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/javascript/javascript.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/julia/julia.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/kotlin/kotlin.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/less/less.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/lexon/lexon.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/liquid/liquid.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/lua/lua.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/m3/m3.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/markdown/markdown.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/mdx/mdx.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/mips/mips.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/msdax/msdax.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/mysql/mysql.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/objective-c/objective-c.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/pascal/pascal.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/pascaligo/pascaligo.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/pebble/pebble.js +25 -55
- package/out/monaco-editor/dev/vs/basic-languages/perl/perl.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/pgsql/pgsql.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/php/php.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/pla/pla.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/postiats/postiats.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/powerquery/powerquery.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/powershell/powershell.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/protobuf/protobuf.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/pug/pug.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/python/python.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/qsharp/qsharp.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/r/r.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/razor/razor.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/redis/redis.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/redshift/redshift.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/ruby/ruby.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/rust/rust.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/sb/sb.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/scala/scala.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/scheme/scheme.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/scss/scss.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/shell/shell.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/solidity/solidity.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/sophia/sophia.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/sparql/sparql.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/sql/sql.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/st/st.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/swift/swift.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/systemverilog/systemverilog.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/tcl/tcl.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/twig/twig.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/typescript/typescript.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/typespec/typespec.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/vb/vb.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/wgsl/wgsl.js +1 -1
- package/out/monaco-editor/dev/vs/basic-languages/xml/xml.js +2 -3
- package/out/monaco-editor/dev/vs/basic-languages/yaml/yaml.js +2 -3
- package/out/monaco-editor/dev/vs/editor/editor.main.js +10 -15
- package/out/monaco-editor/dev/vs/language/css/cssMode.js +2 -3
- package/out/monaco-editor/dev/vs/language/css/cssWorker.js +257 -296
- package/out/monaco-editor/dev/vs/language/html/htmlMode.js +2 -3
- package/out/monaco-editor/dev/vs/language/html/htmlWorker.js +107 -144
- package/out/monaco-editor/dev/vs/language/json/jsonMode.js +10 -3
- package/out/monaco-editor/dev/vs/language/json/jsonWorker.js +72 -102
- package/out/monaco-editor/dev/vs/language/typescript/tsMode.js +3 -5
- package/out/monaco-editor/dev/vs/language/typescript/tsWorker.js +6 -6
- package/out/monaco-editor/esm/vs/basic-languages/_.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/abap/abap.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/apex/apex.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/azcli/azcli.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/bat/bat.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/bicep/bicep.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/clojure/clojure.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/coffee/coffee.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/cpp/cpp.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/csharp/csharp.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/csp/csp.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/css/css.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/css/css.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/cypher/cypher.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/dart/dart.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/ecl/ecl.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/elixir/elixir.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/flow9/flow9.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/go/go.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/go/go.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/graphql/graphql.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/hcl/hcl.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/html/html.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/html/html.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/ini/ini.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/java/java.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/java/java.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/javascript/javascript.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/julia/julia.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/less/less.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/less/less.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/lexon/lexon.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/liquid/liquid.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/lua/lua.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/m3/m3.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/markdown/markdown.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/mdx/mdx.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/mdx/mdx.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/mips/mips.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/monaco.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/msdax/msdax.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/mysql/mysql.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pascal/pascal.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pebble/pebble.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pebble/pebble.js +24 -53
- package/out/monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/perl/perl.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/php/php.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/php/php.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pla/pla.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/postiats/postiats.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/powershell/powershell.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/pug/pug.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/python/python.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/python/python.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/r/r.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/r/r.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/razor/razor.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/redis/redis.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/redshift/redshift.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/ruby/ruby.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/rust/rust.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sb/sb.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/scala/scala.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/scheme/scheme.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/scss/scss.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/shell/shell.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/solidity/solidity.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sophia/sophia.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sparql/sparql.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/sql/sql.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/st/st.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/st/st.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/swift/swift.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/tcl/tcl.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/twig/twig.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/typescript/typescript.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/typespec/typespec.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/typespec/typespec.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/vb/vb.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/wgsl/wgsl.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/xml/xml.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/basic-languages/yaml/yaml.js +1 -1
- package/out/monaco-editor/esm/vs/language/css/css.worker.js +257 -296
- package/out/monaco-editor/esm/vs/language/css/cssMode.js +1 -1
- package/out/monaco-editor/esm/vs/language/css/monaco.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/language/html/html.worker.js +107 -144
- package/out/monaco-editor/esm/vs/language/html/htmlMode.js +1 -1
- package/out/monaco-editor/esm/vs/language/html/monaco.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/language/json/json.worker.js +72 -102
- package/out/monaco-editor/esm/vs/language/json/jsonMode.js +9 -1
- package/out/monaco-editor/esm/vs/language/json/monaco.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/language/typescript/monaco.contribution.js +1 -1
- package/out/monaco-editor/esm/vs/language/typescript/ts.worker.js +6 -6
- package/out/monaco-editor/esm/vs/language/typescript/tsMode.js +2 -3
- package/out/monaco-editor/min/vs/basic-languages/abap/abap.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/apex/apex.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/azcli/azcli.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/bat/bat.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/bicep/bicep.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/cameligo/cameligo.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/clojure/clojure.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/coffee/coffee.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/cpp/cpp.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/csharp/csharp.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/csp/csp.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/css/css.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/cypher/cypher.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/dart/dart.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/dockerfile/dockerfile.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/ecl/ecl.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/elixir/elixir.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/flow9/flow9.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/freemarker2/freemarker2.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/fsharp/fsharp.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/go/go.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/graphql/graphql.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/handlebars/handlebars.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/hcl/hcl.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/html/html.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/ini/ini.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/java/java.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/javascript/javascript.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/julia/julia.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/kotlin/kotlin.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/less/less.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/lexon/lexon.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/liquid/liquid.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/lua/lua.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/m3/m3.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/markdown/markdown.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/mdx/mdx.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/mips/mips.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/msdax/msdax.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/mysql/mysql.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/objective-c/objective-c.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/pascal/pascal.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/pascaligo/pascaligo.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/pebble/pebble.js +2 -2
- package/out/monaco-editor/min/vs/basic-languages/perl/perl.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/pgsql/pgsql.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/php/php.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/pla/pla.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/postiats/postiats.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/powerquery/powerquery.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/powershell/powershell.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/protobuf/protobuf.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/pug/pug.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/python/python.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/qsharp/qsharp.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/r/r.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/razor/razor.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/redis/redis.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/redshift/redshift.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/ruby/ruby.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/rust/rust.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/sb/sb.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/scala/scala.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/scheme/scheme.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/scss/scss.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/shell/shell.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/solidity/solidity.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/sophia/sophia.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/sparql/sparql.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/sql/sql.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/st/st.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/swift/swift.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/systemverilog/systemverilog.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/tcl/tcl.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/twig/twig.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/typescript/typescript.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/typespec/typespec.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/vb/vb.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/wgsl/wgsl.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/xml/xml.js +1 -1
- package/out/monaco-editor/min/vs/basic-languages/yaml/yaml.js +1 -1
- package/out/monaco-editor/min/vs/editor/editor.main.js +5 -5
- package/out/monaco-editor/min/vs/language/css/cssMode.js +2 -2
- package/out/monaco-editor/min/vs/language/css/cssWorker.js +6 -6
- package/out/monaco-editor/min/vs/language/html/htmlMode.js +2 -2
- package/out/monaco-editor/min/vs/language/html/htmlWorker.js +9 -9
- package/out/monaco-editor/min/vs/language/json/jsonMode.js +2 -2
- package/out/monaco-editor/min/vs/language/json/jsonWorker.js +2 -2
- package/out/monaco-editor/min/vs/language/typescript/tsMode.js +1 -1
- package/out/monaco-editor/min/vs/language/typescript/tsWorker.js +16 -16
- package/out/monaco-editor/package.json +11 -10
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.1.0-
|
|
3
|
+
* Version: 0.1.0-dev3(5f53c74686d6eed60f9d2fcfdf2a6ad35b446fcf)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -12,30 +12,30 @@ define("vs/language/html/htmlWorker", ["require","require"],(require)=>{
|
|
|
12
12
|
|
|
13
13
|
`),o?a.value+=t.references.map(e=>`[${e.name}](${e.url})`).join(" | "):a.value+=t.references.map(e=>`${e.name}: ${e.url}`).join(`
|
|
14
14
|
`)),a.value!=="")return a}var Re=class{constructor(n,o){this.dataManager=n,this.readDirectory=o,this.atributeCompletions=[]}onHtmlAttributeValue(n){this.dataManager.isPathAttribute(n.tag,n.attribute)&&this.atributeCompletions.push(n)}async computeCompletions(n,o){let a={items:[],isIncomplete:!1};for(let e of this.atributeCompletions){let r=oi(n.getText(e.range));if(si(r))if(r==="."||r==="..")a.isIncomplete=!0;else{let u=li(e.value,r,e.range),c=await this.providePathSuggestions(e.value,u,n,o);for(let i of c)a.items.push(i)}}return a}async providePathSuggestions(n,o,a,e){let r=n.substring(0,n.lastIndexOf("/")+1),u=e.resolveReference(r||".",a.uri);if(u)try{let c=[],i=await this.readDirectory(u);for(let[s,l]of i)s.charCodeAt(0)!==ai&&c.push(ui(s,l===Ee.Directory,o));return c}catch{}return[]}},ai=46;function oi(t){return Z(t,"'")||Z(t,'"')?t.slice(1,-1):t}function si(t){return!(Z(t,"http")||Z(t,"https")||Z(t,"//"))}function li(t,n,o){let a,e=t.lastIndexOf("/");if(e===-1)a=ci(o,1,-1);else{let r=n.slice(e+1),u=ye(o.end,-1-r.length),c=r.indexOf(" "),i;c!==-1?i=ye(u,c):i=ye(o.end,-1),a=W.create(u,i)}return a}function ui(t,n,o){return n?(t=t+"/",{label:t,kind:$.Folder,textEdit:G.replace(o,t),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:t,kind:$.File,textEdit:G.replace(o,t)}}function ye(t,n){return q.create(t.line,t.character+n)}function ci(t,n,o){let a=ye(t.start,n),e=ye(t.end,o);return W.create(a,e)}var ze=class{constructor(n,o){this.lsOptions=n,this.dataManager=o,this.completionParticipants=[]}setCompletionParticipants(n){this.completionParticipants=n||[]}async doComplete2(n,o,a,e,r){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(n,o,a,r);let u=new Re(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),c=this.completionParticipants;this.completionParticipants=[u].concat(c);let i=this.doComplete(n,o,a,r);try{let s=await u.computeCompletions(n,e);return{isIncomplete:i.isIncomplete||s.isIncomplete,items:s.items.concat(i.items)}}finally{this.completionParticipants=c}}doComplete(n,o,a,e){let r=this._doComplete(n,o,a,e);return this.convertCompletionList(r)}_doComplete(n,o,a,e){let r={isIncomplete:!1,items:[]},u=this.completionParticipants,c=this.dataManager.getDataProviders().filter(k=>k.isApplicable(n.languageId)&&(!e||e[k.getId()]!==!1)),i=this.dataManager.getVoidElements(c),s=this.doesSupportMarkdown(),l=n.getText(),h=n.offsetAt(o),p=a.findNodeBefore(h);if(!p)return r;let m=V(l,p.start),A="",b;function D(k,x=h){return k>h&&(k=h),{start:n.positionAt(k),end:n.positionAt(x)}}function T(k,x){let M=D(k,x);return c.forEach(B=>{B.provideTags().forEach(O=>{r.items.push({label:O.name,kind:$.Property,documentation:te(O,void 0,s),textEdit:G.replace(M,O.name),insertTextFormat:X.PlainText})})}),r}function y(k){let x=k;for(;x>0;){let M=l.charAt(x-1);if(`
|
|
15
|
-
\r`.indexOf(M)>=0)return l.substring(x,k);if(!He(M))return null;x--}return l.substring(0,k)}function L(k,x,M=h){let B=D(k,M),O=dn(l,M,H.WithinEndTag,S.EndTagClose)?"":">",z=p;for(x&&(z=z.parent);z;){let U=z.tag;if(U&&(!z.closed||z.endTagStart&&z.endTagStart>h)){let P={label:"/"+U,kind:$.Property,filterText:"/"+U,textEdit:G.replace(B,"/"+U+O),insertTextFormat:X.PlainText},j=y(z.start),K=y(k-1);if(j!==null&&K!==null&&j!==K){let ae=j+"</"+U+O;P.textEdit=G.replace(D(k-1-K.length),ae),P.filterText=K+"</"+U}return r.items.push(P),r}z=z.parent}return x||c.forEach(U=>{U.provideTags().forEach(P=>{r.items.push({label:"/"+P.name,kind:$.Property,documentation:te(P,void 0,s),filterText:"/"+P.name+O,textEdit:G.replace(B,"/"+P.name+O),insertTextFormat:X.PlainText})})}),r}let I=(k,x)=>{if(e&&e.hideAutoCompleteProposals)return r;if(!this.dataManager.isVoidElement(x,i)){let M=n.positionAt(k);r.items.push({label:"</"+x+">",kind:$.Property,filterText:"</"+x+">",textEdit:G.insert(M,"$0</"+x+">"),insertTextFormat:X.Snippet})}return r};function N(k,x){return T(k,x),L(k,!0,x),r}function F(){let k=Object.create(null);return p.attributeNames.forEach(x=>{k[x]=!0}),k}function f(k,x=h){let M=h;for(;M<x&&l[M]!=="<";)M++;let B=l.substring(k,x),O=D(k,M),z="";if(!dn(l,x,H.AfterAttributeName,S.DelimiterAssign)){let P=e?.attributeDefaultValue??"doublequotes";P==="empty"?z="=$1":P==="singlequotes"?z="='$1'":z='="$1"'}let U=F();return U[B]=!1,c.forEach(P=>{P.provideAttributes(A).forEach(j=>{if(U[j.name])return;U[j.name]=!0;let K=j.name,ae;j.valueSet!=="v"&&z.length&&(K=K+z,(j.valueSet||j.name==="style")&&(ae={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:j.name,kind:j.valueSet==="handler"?$.Function:$.Value,documentation:te(j,void 0,s),textEdit:G.replace(O,K),insertTextFormat:X.Snippet,command:ae})})}),d(O,U),r}function d(k,x){let M="data-",B={};B[M]=`${M}$1="$2"`;function O(z){z.attributeNames.forEach(U=>{Z(U,M)&&!B[U]&&!x[U]&&(B[U]=U+'="$1"')}),z.children.forEach(U=>O(U))}a&&a.roots.forEach(z=>O(z)),Object.keys(B).forEach(z=>r.items.push({label:z,kind:$.Value,textEdit:G.replace(k,B[z]),insertTextFormat:X.Snippet}))}function g(k,x=h){let M,B,O;if(h>k&&h<=x&&hi(l[k])){let z=k+1,U=x;x>k&&l[x-1]===l[k]&&U--;let P=di(l,h,z),j=pi(l,h,U);M=D(P,j),O=h>=z&&h<=U?l.substring(z,h):"",B=!1}else M=D(k,x),O=l.substring(k,h),B=!0;if(u.length>0){let z=A.toLowerCase(),U=b.toLowerCase(),P=D(k,x);for(let j of u)j.onHtmlAttributeValue&&j.onHtmlAttributeValue({document:n,position:o,tag:z,attribute:U,value:O,range:P})}return c.forEach(z=>{z.provideValues(A,b).forEach(U=>{let P=B?'"'+U.name+'"':U.name;r.items.push({label:U.name,filterText:P,kind:$.Unit,documentation:te(U,void 0,s),textEdit:G.replace(M,P),insertTextFormat:X.PlainText})})}),_(),r}function R(k){return h===m.getTokenEnd()&&(E=m.scan(),E===k&&m.getTokenOffset()===h)?m.getTokenEnd():h}function v(){for(let k of u)k.onHtmlContent&&k.onHtmlContent({document:n,position:o});return _()}function _(){let k=h-1,x=o.character;for(;k>=0&&re(l,k);)k--,x--;if(k>=0&&l[k]==="&"){let M=W.create(q.create(o.line,x-1),o);for(let B in ie)if(cn(B,";")){let O="&"+B;r.items.push({label:O,kind:$.Keyword,documentation:J("Character entity representing '{0}'",ie[B]),textEdit:G.replace(M,O),insertTextFormat:X.PlainText})}}return r}function C(k,x){let M=D(k,x);r.items.push({label:"!DOCTYPE",kind:$.Property,documentation:"A preamble for an HTML document.",textEdit:G.replace(M,"!DOCTYPE html>"),insertTextFormat:X.PlainText})}let E=m.scan();for(;E!==S.EOS&&m.getTokenOffset()<=h;){switch(E){case S.StartTagOpen:if(m.getTokenEnd()===h){let k=R(S.StartTag);return o.line===0&&C(h,k),N(h,k)}break;case S.StartTag:if(m.getTokenOffset()<=h&&h<=m.getTokenEnd())return T(m.getTokenOffset(),m.getTokenEnd());A=m.getTokenText();break;case S.AttributeName:if(m.getTokenOffset()<=h&&h<=m.getTokenEnd())return f(m.getTokenOffset(),m.getTokenEnd());b=m.getTokenText();break;case S.DelimiterAssign:if(m.getTokenEnd()===h){let k=R(S.AttributeValue);return g(h,k)}break;case S.AttributeValue:if(m.getTokenOffset()<=h&&h<=m.getTokenEnd())return g(m.getTokenOffset(),m.getTokenEnd());break;case S.Whitespace:if(h<=m.getTokenEnd())switch(m.getScannerState()){case H.AfterOpeningStartTag:let k=m.getTokenOffset(),x=R(S.StartTag);return N(k,x);case H.WithinTag:case H.AfterAttributeName:return f(m.getTokenEnd());case H.BeforeAttributeValue:return g(m.getTokenEnd());case H.AfterOpeningEndTag:return L(m.getTokenOffset()-1,!1);case H.WithinContent:return v()}break;case S.EndTagOpen:if(h<=m.getTokenEnd()){let k=m.getTokenOffset()+1,x=R(S.EndTag);return L(k,!1,x)}break;case S.EndTag:if(h<=m.getTokenEnd()){let k=m.getTokenOffset()-1;for(;k>=0;){let x=l.charAt(k);if(x==="/")return L(k,!1,m.getTokenEnd());if(!He(x))break;k--}}break;case S.StartTagClose:if(h<=m.getTokenEnd()&&A)return I(m.getTokenEnd(),A);break;case S.Content:if(h<=m.getTokenEnd())return v();break;default:if(h<=m.getTokenEnd())return r;break}E=m.scan()}return r}doQuoteComplete(n,o,a,e){let r=n.offsetAt(o);if(r<=0)return null;let u=e?.attributeDefaultValue??"doublequotes";if(u==="empty"||n.getText().charAt(r-1)!=="=")return null;let i=u==="doublequotes"?'"$1"':"'$1'",s=a.findNodeBefore(r);if(s&&s.attributes&&s.start<r&&(!s.endTagStart||s.endTagStart>r)){let l=V(n.getText(),s.start),h=l.scan();for(;h!==S.EOS&&l.getTokenEnd()<=r;){if(h===S.AttributeName&&l.getTokenEnd()===r-1)return h=l.scan(),h!==S.DelimiterAssign||(h=l.scan(),h===S.Unknown||h===S.AttributeValue)?null:i;h=l.scan()}}return null}doTagComplete(n,o,a){let e=n.offsetAt(o);if(e<=0)return null;let r=n.getText().charAt(e-1);if(r===">"){let u=this.dataManager.getVoidElements(n.languageId),c=a.findNodeBefore(e);if(c&&c.tag&&!this.dataManager.isVoidElement(c.tag,u)&&c.start<e&&(!c.endTagStart||c.endTagStart>e)){let i=V(n.getText(),c.start),s=i.scan();for(;s!==S.EOS&&i.getTokenEnd()<=e;){if(s===S.StartTagClose&&i.getTokenEnd()===e)return`$0</${c.tag}>`;s=i.scan()}}}else if(r==="/"){let u=a.findNodeBefore(e);for(;u&&u.closed&&!(u.endTagStart&&u.endTagStart>e);)u=u.parent;if(u&&u.tag){let c=V(n.getText(),u.start),i=c.scan();for(;i!==S.EOS&&c.getTokenEnd()<=e;){if(i===S.EndTagOpen&&c.getTokenEnd()===e)return n.getText().charAt(e)!==">"?`${u.tag}>`:u.tag;i=c.scan()}}}return null}convertCompletionList(n){return this.doesSupportMarkdown()||n.items.forEach(o=>{o.documentation&&typeof o.documentation!="string"&&(o.documentation={kind:"plaintext",value:o.documentation.value})}),n}doesSupportMarkdown(){if(!de(this.supportsMarkdown)){if(!de(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let n=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(n)&&n.indexOf(Q.Markdown)!==-1}return this.supportsMarkdown}};function hi(t){return/^["']*$/.test(t)}function He(t){return/^\s*$/.test(t)}function dn(t,n,o,a){let e=V(t,n,o),r=e.scan();for(;r===S.Whitespace;)r=e.scan();return r===a}function di(t,n,o){for(;n>o&&!He(t[n-1]);)n--;return n}function pi(t,n,o){for(;n<o&&!He(t[n]);)n++;return n}var Ie=class{constructor(n,o){this.lsOptions=n,this.dataManager=o}doHover(n,o,a,e){let r=this.convertContents.bind(this),u=this.doesSupportMarkdown(),c=n.offsetAt(o),i=a.findNodeAt(c),s=n.getText();if(!i||!i.tag)return null;let l=this.dataManager.getDataProviders().filter(f=>f.isApplicable(n.languageId));function h(f,d,g){for(let R of l){let v=null;if(R.provideTags().forEach(_=>{if(_.name.toLowerCase()===f.toLowerCase()){let C=te(_,e,u);C||(C={kind:u?"markdown":"plaintext",value:""}),v={contents:C,range:d}}}),v)return v.contents=r(v.contents),v}return null}function p(f,d,g){for(let R of l){let v=null;if(R.provideAttributes(f).forEach(_=>{if(d===_.name&&_.description){let C=te(_,e,u);C?v={contents:C,range:g}:v=null}}),v)return v.contents=r(v.contents),v}return null}function m(f,d,g,R){for(let v of l){let _=null;if(v.provideValues(f,d).forEach(C=>{if(g===C.name&&C.description){let E=te(C,e,u);E?_={contents:E,range:R}:_=null}}),_)return _.contents=r(_.contents),_}return null}function A(f,d){let g=T(f);for(let R in ie){let v=null,_="&"+R;if(g===_){let C=ie[R].charCodeAt(0).toString(16).toUpperCase(),E="U+";if(C.length<4){let x=4-C.length,M=0;for(;M<x;)E+="0",M+=1}E+=C;let k=J("Character entity representing '{0}', unicode equivalent '{1}'",ie[R],E);k?v={contents:k,range:d}:v=null}if(v)return v.contents=r(v.contents),v}return null}function b(f,d){let g=V(n.getText(),d),R=g.scan();for(;R!==S.EOS&&(g.getTokenEnd()<c||g.getTokenEnd()===c&&R!==f);)R=g.scan();return R===f&&c<=g.getTokenEnd()?{start:n.positionAt(g.getTokenOffset()),end:n.positionAt(g.getTokenEnd())}:null}function D(){let f=c-1,d=o.character;for(;f>=0&&re(s,f);)f--,d--;let g=f+1,R=d;for(;re(s,g);)g++,R++;if(f>=0&&s[f]==="&"){let v=null;return s[g]===";"?v=W.create(q.create(o.line,d),q.create(o.line,R+1)):v=W.create(q.create(o.line,d),q.create(o.line,R)),v}return null}function T(f){let d=c-1,g="&";for(;d>=0&&re(f,d);)d--;for(d=d+1;re(f,d);)g+=f[d],d+=1;return g+=";",g}if(i.endTagStart&&c>=i.endTagStart){let f=b(S.EndTag,i.endTagStart);return f?h(i.tag,f,!1):null}let y=b(S.StartTag,i.start);if(y)return h(i.tag,y,!0);let L=b(S.AttributeName,i.start);if(L){let f=i.tag,d=n.getText(L);return p(f,d,L)}let I=D();if(I)return A(s,I);function N(f,d){let g=V(n.getText(),f),R=g.scan(),v;for(;R!==S.EOS&&g.getTokenEnd()<=d;)R=g.scan(),R===S.AttributeName&&(v=g.getTokenText());return v}let F=b(S.AttributeValue,i.start);if(F){let f=i.tag,d=mi(n.getText(F)),g=N(i.start,n.offsetAt(F.start));if(g)return m(f,g,d,F)}return null}convertContents(n){if(!this.doesSupportMarkdown()){if(typeof n=="string")return n;if("kind"in n)return{kind:"plaintext",value:n.value};if(Array.isArray(n))n.map(o=>typeof o=="string"?o:o.value);else return n.value}return n}doesSupportMarkdown(){if(!de(this.supportsMarkdown)){if(!de(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let n=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(n)&&n.indexOf(Q.Markdown)!==-1}return this.supportsMarkdown}};function mi(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}function pn(t,n){return t}var mn;(function(){"use strict";var t=[,,function(e){function r(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}r.prototype.clone_empty=function(){var i=new r(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},r.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},r.prototype.has_match=function(i){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(i))return!0;return!1},r.prototype.set_indent=function(i,s){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return this.__items.length===0},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(i){this.__items.push(i);var s=i.lastIndexOf(`
|
|
15
|
+
\r`.indexOf(M)>=0)return l.substring(x,k);if(!He(M))return null;x--}return l.substring(0,k)}function L(k,x,M=h){let B=D(k,M),O=dn(l,M,H.WithinEndTag,S.EndTagClose)?"":">",z=p;for(x&&(z=z.parent);z;){let U=z.tag;if(U&&(!z.closed||z.endTagStart&&z.endTagStart>h)){let P={label:"/"+U,kind:$.Property,filterText:"/"+U,textEdit:G.replace(B,"/"+U+O),insertTextFormat:X.PlainText},j=y(z.start),K=y(k-1);if(j!==null&&K!==null&&j!==K){let ae=j+"</"+U+O;P.textEdit=G.replace(D(k-1-K.length),ae),P.filterText=K+"</"+U}return r.items.push(P),r}z=z.parent}return x||c.forEach(U=>{U.provideTags().forEach(P=>{r.items.push({label:"/"+P.name,kind:$.Property,documentation:te(P,void 0,s),filterText:"/"+P.name+O,textEdit:G.replace(B,"/"+P.name+O),insertTextFormat:X.PlainText})})}),r}let I=(k,x)=>{if(e&&e.hideAutoCompleteProposals)return r;if(!this.dataManager.isVoidElement(x,i)){let M=n.positionAt(k);r.items.push({label:"</"+x+">",kind:$.Property,filterText:"</"+x+">",textEdit:G.insert(M,"$0</"+x+">"),insertTextFormat:X.Snippet})}return r};function N(k,x){return T(k,x),L(k,!0,x),r}function F(){let k=Object.create(null);return p.attributeNames.forEach(x=>{k[x]=!0}),k}function f(k,x=h){let M=h;for(;M<x&&l[M]!=="<";)M++;let B=l.substring(k,x),O=D(k,M),z="";if(!dn(l,x,H.AfterAttributeName,S.DelimiterAssign)){let P=e?.attributeDefaultValue??"doublequotes";P==="empty"?z="=$1":P==="singlequotes"?z="='$1'":z='="$1"'}let U=F();return U[B]=!1,c.forEach(P=>{P.provideAttributes(A).forEach(j=>{if(U[j.name])return;U[j.name]=!0;let K=j.name,ae;j.valueSet!=="v"&&z.length&&(K=K+z,(j.valueSet||j.name==="style")&&(ae={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:j.name,kind:j.valueSet==="handler"?$.Function:$.Value,documentation:te(j,void 0,s),textEdit:G.replace(O,K),insertTextFormat:X.Snippet,command:ae})})}),d(O,U),r}function d(k,x){let M="data-",B={};B[M]=`${M}$1="$2"`;function O(z){z.attributeNames.forEach(U=>{Z(U,M)&&!B[U]&&!x[U]&&(B[U]=U+'="$1"')}),z.children.forEach(U=>O(U))}a&&a.roots.forEach(z=>O(z)),Object.keys(B).forEach(z=>r.items.push({label:z,kind:$.Value,textEdit:G.replace(k,B[z]),insertTextFormat:X.Snippet}))}function g(k,x=h){let M,B,O;if(h>k&&h<=x&&hi(l[k])){let z=k+1,U=x;x>k&&l[x-1]===l[k]&&U--;let P=di(l,h,z),j=pi(l,h,U);M=D(P,j),O=h>=z&&h<=U?l.substring(z,h):"",B=!1}else M=D(k,x),O=l.substring(k,h),B=!0;if(u.length>0){let z=A.toLowerCase(),U=b.toLowerCase(),P=D(k,x);for(let j of u)j.onHtmlAttributeValue&&j.onHtmlAttributeValue({document:n,position:o,tag:z,attribute:U,value:O,range:P})}return c.forEach(z=>{z.provideValues(A,b).forEach(U=>{let P=B?'"'+U.name+'"':U.name;r.items.push({label:U.name,filterText:P,kind:$.Unit,documentation:te(U,void 0,s),textEdit:G.replace(M,P),insertTextFormat:X.PlainText})})}),_(),r}function R(k){return h===m.getTokenEnd()&&(E=m.scan(),E===k&&m.getTokenOffset()===h)?m.getTokenEnd():h}function v(){for(let k of u)k.onHtmlContent&&k.onHtmlContent({document:n,position:o});return _()}function _(){let k=h-1,x=o.character;for(;k>=0&&re(l,k);)k--,x--;if(k>=0&&l[k]==="&"){let M=W.create(q.create(o.line,x-1),o);for(let B in ie)if(cn(B,";")){let O="&"+B;r.items.push({label:O,kind:$.Keyword,documentation:J("Character entity representing '{0}'",ie[B]),textEdit:G.replace(M,O),insertTextFormat:X.PlainText})}}return r}function C(k,x){let M=D(k,x);r.items.push({label:"!DOCTYPE",kind:$.Property,documentation:"A preamble for an HTML document.",textEdit:G.replace(M,"!DOCTYPE html>"),insertTextFormat:X.PlainText})}let E=m.scan();for(;E!==S.EOS&&m.getTokenOffset()<=h;){switch(E){case S.StartTagOpen:if(m.getTokenEnd()===h){let k=R(S.StartTag);return o.line===0&&C(h,k),N(h,k)}break;case S.StartTag:if(m.getTokenOffset()<=h&&h<=m.getTokenEnd())return T(m.getTokenOffset(),m.getTokenEnd());A=m.getTokenText();break;case S.AttributeName:if(m.getTokenOffset()<=h&&h<=m.getTokenEnd())return f(m.getTokenOffset(),m.getTokenEnd());b=m.getTokenText();break;case S.DelimiterAssign:if(m.getTokenEnd()===h){let k=R(S.AttributeValue);return g(h,k)}break;case S.AttributeValue:if(m.getTokenOffset()<=h&&h<=m.getTokenEnd())return g(m.getTokenOffset(),m.getTokenEnd());break;case S.Whitespace:if(h<=m.getTokenEnd())switch(m.getScannerState()){case H.AfterOpeningStartTag:let k=m.getTokenOffset(),x=R(S.StartTag);return N(k,x);case H.WithinTag:case H.AfterAttributeName:return f(m.getTokenEnd());case H.BeforeAttributeValue:return g(m.getTokenEnd());case H.AfterOpeningEndTag:return L(m.getTokenOffset()-1,!1);case H.WithinContent:return v()}break;case S.EndTagOpen:if(h<=m.getTokenEnd()){let k=m.getTokenOffset()+1,x=R(S.EndTag);return L(k,!1,x)}break;case S.EndTag:if(h<=m.getTokenEnd()){let k=m.getTokenOffset()-1;for(;k>=0;){let x=l.charAt(k);if(x==="/")return L(k,!1,m.getTokenEnd());if(!He(x))break;k--}}break;case S.StartTagClose:if(h<=m.getTokenEnd()&&A)return I(m.getTokenEnd(),A);break;case S.Content:if(h<=m.getTokenEnd())return v();break;default:if(h<=m.getTokenEnd())return r;break}E=m.scan()}return r}doQuoteComplete(n,o,a,e){let r=n.offsetAt(o);if(r<=0)return null;let u=e?.attributeDefaultValue??"doublequotes";if(u==="empty"||n.getText().charAt(r-1)!=="=")return null;let i=u==="doublequotes"?'"$1"':"'$1'",s=a.findNodeBefore(r);if(s&&s.attributes&&s.start<r&&(!s.endTagStart||s.endTagStart>r)){let l=V(n.getText(),s.start),h=l.scan();for(;h!==S.EOS&&l.getTokenEnd()<=r;){if(h===S.AttributeName&&l.getTokenEnd()===r-1)return h=l.scan(),h!==S.DelimiterAssign||(h=l.scan(),h===S.Unknown||h===S.AttributeValue)?null:i;h=l.scan()}}return null}doTagComplete(n,o,a){let e=n.offsetAt(o);if(e<=0)return null;let r=n.getText().charAt(e-1);if(r===">"){let u=this.dataManager.getVoidElements(n.languageId),c=a.findNodeBefore(e);if(c&&c.tag&&!this.dataManager.isVoidElement(c.tag,u)&&c.start<e&&(!c.endTagStart||c.endTagStart>e)){let i=V(n.getText(),c.start),s=i.scan();for(;s!==S.EOS&&i.getTokenEnd()<=e;){if(s===S.StartTagClose&&i.getTokenEnd()===e)return`$0</${c.tag}>`;s=i.scan()}}}else if(r==="/"){let u=a.findNodeBefore(e);for(;u&&u.closed&&!(u.endTagStart&&u.endTagStart>e);)u=u.parent;if(u&&u.tag){let c=V(n.getText(),u.start),i=c.scan();for(;i!==S.EOS&&c.getTokenEnd()<=e;){if(i===S.EndTagOpen&&c.getTokenEnd()===e)return n.getText().charAt(e)!==">"?`${u.tag}>`:u.tag;i=c.scan()}}}return null}convertCompletionList(n){return this.doesSupportMarkdown()||n.items.forEach(o=>{o.documentation&&typeof o.documentation!="string"&&(o.documentation={kind:"plaintext",value:o.documentation.value})}),n}doesSupportMarkdown(){if(!de(this.supportsMarkdown)){if(!de(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let n=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(n)&&n.indexOf(Q.Markdown)!==-1}return this.supportsMarkdown}};function hi(t){return/^["']*$/.test(t)}function He(t){return/^\s*$/.test(t)}function dn(t,n,o,a){let e=V(t,n,o),r=e.scan();for(;r===S.Whitespace;)r=e.scan();return r===a}function di(t,n,o){for(;n>o&&!He(t[n-1]);)n--;return n}function pi(t,n,o){for(;n<o&&!He(t[n]);)n++;return n}var Ie=class{constructor(n,o){this.lsOptions=n,this.dataManager=o}doHover(n,o,a,e){let r=this.convertContents.bind(this),u=this.doesSupportMarkdown(),c=n.offsetAt(o),i=a.findNodeAt(c),s=n.getText();if(!i||!i.tag)return null;let l=this.dataManager.getDataProviders().filter(f=>f.isApplicable(n.languageId));function h(f,d,g){for(let R of l){let v=null;if(R.provideTags().forEach(_=>{if(_.name.toLowerCase()===f.toLowerCase()){let C=te(_,e,u);C||(C={kind:u?"markdown":"plaintext",value:""}),v={contents:C,range:d}}}),v)return v.contents=r(v.contents),v}return null}function p(f,d,g){for(let R of l){let v=null;if(R.provideAttributes(f).forEach(_=>{if(d===_.name&&_.description){let C=te(_,e,u);C?v={contents:C,range:g}:v=null}}),v)return v.contents=r(v.contents),v}return null}function m(f,d,g,R){for(let v of l){let _=null;if(v.provideValues(f,d).forEach(C=>{if(g===C.name&&C.description){let E=te(C,e,u);E?_={contents:E,range:R}:_=null}}),_)return _.contents=r(_.contents),_}return null}function A(f,d){let g=T(f);for(let R in ie){let v=null,_="&"+R;if(g===_){let C=ie[R].charCodeAt(0).toString(16).toUpperCase(),E="U+";if(C.length<4){let x=4-C.length,M=0;for(;M<x;)E+="0",M+=1}E+=C;let k=J("Character entity representing '{0}', unicode equivalent '{1}'",ie[R],E);k?v={contents:k,range:d}:v=null}if(v)return v.contents=r(v.contents),v}return null}function b(f,d){let g=V(n.getText(),d),R=g.scan();for(;R!==S.EOS&&(g.getTokenEnd()<c||g.getTokenEnd()===c&&R!==f);)R=g.scan();return R===f&&c<=g.getTokenEnd()?{start:n.positionAt(g.getTokenOffset()),end:n.positionAt(g.getTokenEnd())}:null}function D(){let f=c-1,d=o.character;for(;f>=0&&re(s,f);)f--,d--;let g=f+1,R=d;for(;re(s,g);)g++,R++;if(f>=0&&s[f]==="&"){let v=null;return s[g]===";"?v=W.create(q.create(o.line,d),q.create(o.line,R+1)):v=W.create(q.create(o.line,d),q.create(o.line,R)),v}return null}function T(f){let d=c-1,g="&";for(;d>=0&&re(f,d);)d--;for(d=d+1;re(f,d);)g+=f[d],d+=1;return g+=";",g}if(i.endTagStart&&c>=i.endTagStart){let f=b(S.EndTag,i.endTagStart);return f?h(i.tag,f,!1):null}let y=b(S.StartTag,i.start);if(y)return h(i.tag,y,!0);let L=b(S.AttributeName,i.start);if(L){let f=i.tag,d=n.getText(L);return p(f,d,L)}let I=D();if(I)return A(s,I);function N(f,d){let g=V(n.getText(),f),R=g.scan(),v;for(;R!==S.EOS&&g.getTokenEnd()<=d;)R=g.scan(),R===S.AttributeName&&(v=g.getTokenText());return v}let F=b(S.AttributeValue,i.start);if(F){let f=i.tag,d=mi(n.getText(F)),g=N(i.start,n.offsetAt(F.start));if(g)return m(f,g,d,F)}return null}convertContents(n){if(!this.doesSupportMarkdown()){if(typeof n=="string")return n;if("kind"in n)return{kind:"plaintext",value:n.value};if(Array.isArray(n))n.map(o=>typeof o=="string"?o:o.value);else return n.value}return n}doesSupportMarkdown(){if(!de(this.supportsMarkdown)){if(!de(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let n=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(n)&&n.indexOf(Q.Markdown)!==-1}return this.supportsMarkdown}};function mi(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}function pn(t,n){return t}var mn;(function(){"use strict";var t=[,,(function(e){function r(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}r.prototype.clone_empty=function(){var i=new r(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},r.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},r.prototype.has_match=function(i){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(i))return!0;return!1},r.prototype.set_indent=function(i,s){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return this.__items.length===0},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(i){this.__items.push(i);var s=i.lastIndexOf(`
|
|
16
16
|
`);s!==-1?this.__character_count=i.length-s:this.__character_count+=i.length},r.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function u(i,s){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),s=s||"",i.indent_level>0&&(s=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}u.prototype.get_indent_size=function(i,s){var l=this.__base_string_length;return s=s||0,i<0&&(l=0),l+=i*this.__indent_size,l+=s,l},u.prototype.get_indent_string=function(i,s){var l=this.__base_string;return s=s||0,i<0&&(i=0,l=""),s+=i*this.__indent_size,this.__ensure_cache(s),l+=this.__cache[s],l},u.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var i=this.__cache.length,s=0,l="";this.__indent_size&&i>=this.__indent_size&&(s=Math.floor(i/this.__indent_size),i-=s*this.__indent_size,l=new Array(s+1).join(this.__indent_string)),i&&(l+=new Array(i+1).join(" ")),this.__cache.push(l)};function c(i,s){this.__indent_cache=new u(i,s),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(i,s){return this.__indent_cache.get_indent_string(i,s)},c.prototype.get_indent_size=function(i,s){return this.__indent_cache.get_indent_size(i,s)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(i){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
17
17
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var l=this.__lines.join(`
|
|
18
18
|
`);return i!==`
|
|
19
|
-
`&&(l=l.replace(/[\n]/g,i)),l},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(i,s){return i=i||0,s=s||0,this.next_line.set_indent(i,s),this.__lines.length>1?(this.current_line.set_indent(i,s),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(i){for(var s=0;s<i.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(i){for(var s=this.__lines.length;i<s;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(i,s){for(var l=this.__lines.length-2;l>=0;){var h=this.__lines[l];if(h.is_empty())break;if(h.item(0).indexOf(i)!==0&&h.item(-1)!==s){this.__lines.splice(l+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},e.exports.Output=c},,,,function(e){function r(i,s){this.raw_options=u(i,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}r.prototype._get_array=function(i,s){var l=this.raw_options[i],h=s||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(h=l.concat()):typeof l=="string"&&(h=l.split(/[^a-zA-Z0-9_\/\-]+/)),h},r.prototype._get_boolean=function(i,s){var l=this.raw_options[i],h=l===void 0?!!s:!!l;return h},r.prototype._get_characters=function(i,s){var l=this.raw_options[i],h=s||"";return typeof l=="string"&&(h=l.replace(/\\r/,"\r").replace(/\\n/,`
|
|
19
|
+
`&&(l=l.replace(/[\n]/g,i)),l},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(i,s){return i=i||0,s=s||0,this.next_line.set_indent(i,s),this.__lines.length>1?(this.current_line.set_indent(i,s),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(i){for(var s=0;s<i.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(i){for(var s=this.__lines.length;i<s;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(i,s){for(var l=this.__lines.length-2;l>=0;){var h=this.__lines[l];if(h.is_empty())break;if(h.item(0).indexOf(i)!==0&&h.item(-1)!==s){this.__lines.splice(l+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},e.exports.Output=c}),,,,(function(e){function r(i,s){this.raw_options=u(i,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}r.prototype._get_array=function(i,s){var l=this.raw_options[i],h=s||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(h=l.concat()):typeof l=="string"&&(h=l.split(/[^a-zA-Z0-9_\/\-]+/)),h},r.prototype._get_boolean=function(i,s){var l=this.raw_options[i],h=l===void 0?!!s:!!l;return h},r.prototype._get_characters=function(i,s){var l=this.raw_options[i],h=s||"";return typeof l=="string"&&(h=l.replace(/\\r/,"\r").replace(/\\n/,`
|
|
20
20
|
`).replace(/\\t/," ")),h},r.prototype._get_number=function(i,s){var l=this.raw_options[i];s=parseInt(s,10),isNaN(s)&&(s=0);var h=parseInt(l,10);return isNaN(h)&&(h=s),h},r.prototype._get_selection=function(i,s,l){var h=this._get_selection_list(i,s,l);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values:
|
|
21
21
|
`+s+`
|
|
22
22
|
You passed in: '`+this.raw_options[i]+"'");return h[0]},r.prototype._get_selection_list=function(i,s,l){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(l=l||[s[0]],!this._is_valid_selection(l,s))throw new Error("Invalid Default Value!");var h=this._get_array(i,l);if(!this._is_valid_selection(h,s))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values:
|
|
23
23
|
`+s+`
|
|
24
|
-
You passed in: '`+this.raw_options[i]+"'");return h},r.prototype._is_valid_selection=function(i,s){return i.length&&s.length&&!i.some(function(l){return s.indexOf(l)===-1})};function u(i,s){var l={};i=c(i);var h;for(h in i)h!==s&&(l[h]=i[h]);if(s&&i[s])for(h in i[s])l[h]=i[s][h];return l}function c(i){var s={},l;for(l in i){var h=l.replace(/-/g,"_");s[h]=i[l]}return s}e.exports.Options=r,e.exports.normalizeOpts=c,e.exports.mergeOpts=u},,function(e){var r=RegExp.prototype.hasOwnProperty("sticky");function u(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},u.prototype.peek=function(c){var i=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(i=this.__input.charAt(c)),i},u.prototype.__match=function(c,i){c.lastIndex=i;var s=c.exec(this.__input);return s&&!(r&&c.sticky)&&s.index!==i&&(s=null),s},u.prototype.test=function(c,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(c,i):!1},u.prototype.testChar=function(c,i){var s=this.peek(i);return c.lastIndex=0,s!==null&&c.test(s)},u.prototype.match=function(c){var i=this.__match(c,this.__position);return i?this.__position+=i[0].length:i=null,i},u.prototype.read=function(c,i,s){var l="",h;return c&&(h=this.match(c),h&&(l+=h[0])),i&&(h||!c)&&(l+=this.readUntil(i,s)),l},u.prototype.readUntil=function(c,i){var s="",l=this.__position;c.lastIndex=this.__position;var h=c.exec(this.__input);return h?(l=h.index,i&&(l+=h[0].length)):l=this.__input_length,s=this.__input.substring(this.__position,l),this.__position=l,s},u.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},u.prototype.get_regexp=function(c,i){var s=null,l="g";return i&&r&&(l="y"),typeof c=="string"&&c!==""?s=new RegExp(c,l):c&&(s=new RegExp(c.source,l)),s},u.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(c){var i=this.__position,s=this.readUntilAfter(c);return this.__position=i,s},u.prototype.lookBack=function(c){var i=this.__position-1;return i>=c.length&&this.__input.substring(i-c.length,i).toLowerCase()===c},e.exports.InputScanner=u},,,,,function(e){function r(u,c){u=typeof u=="string"?u:u.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+c,"g")}r.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(u);i;)c[i[1]]=i[2],i=this.__directive_pattern.exec(u);return c},r.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r},,function(e,r,u){var c=u(16).Beautifier,i=u(17).Options;function s(l,h){var p=new c(l,h);return p.beautify()}e.exports=s,e.exports.defaultOptions=function(){return new i}},function(e,r,u){var c=u(17).Options,i=u(2).Output,s=u(8).InputScanner,l=u(13).Directives,h=new l(/\/\*/,/\*\//),p=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,A=/\s/,b=/(?:\s|\n)+/g,D=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,T=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(L,I){this._source_text=L||"",this._options=new c(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}y.prototype.eatString=function(L){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(L.indexOf(this._ch)!==-1||this._ch===`
|
|
24
|
+
You passed in: '`+this.raw_options[i]+"'");return h},r.prototype._is_valid_selection=function(i,s){return i.length&&s.length&&!i.some(function(l){return s.indexOf(l)===-1})};function u(i,s){var l={};i=c(i);var h;for(h in i)h!==s&&(l[h]=i[h]);if(s&&i[s])for(h in i[s])l[h]=i[s][h];return l}function c(i){var s={},l;for(l in i){var h=l.replace(/-/g,"_");s[h]=i[l]}return s}e.exports.Options=r,e.exports.normalizeOpts=c,e.exports.mergeOpts=u}),,(function(e){var r=RegExp.prototype.hasOwnProperty("sticky");function u(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},u.prototype.peek=function(c){var i=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(i=this.__input.charAt(c)),i},u.prototype.__match=function(c,i){c.lastIndex=i;var s=c.exec(this.__input);return s&&!(r&&c.sticky)&&s.index!==i&&(s=null),s},u.prototype.test=function(c,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(c,i):!1},u.prototype.testChar=function(c,i){var s=this.peek(i);return c.lastIndex=0,s!==null&&c.test(s)},u.prototype.match=function(c){var i=this.__match(c,this.__position);return i?this.__position+=i[0].length:i=null,i},u.prototype.read=function(c,i,s){var l="",h;return c&&(h=this.match(c),h&&(l+=h[0])),i&&(h||!c)&&(l+=this.readUntil(i,s)),l},u.prototype.readUntil=function(c,i){var s="",l=this.__position;c.lastIndex=this.__position;var h=c.exec(this.__input);return h?(l=h.index,i&&(l+=h[0].length)):l=this.__input_length,s=this.__input.substring(this.__position,l),this.__position=l,s},u.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},u.prototype.get_regexp=function(c,i){var s=null,l="g";return i&&r&&(l="y"),typeof c=="string"&&c!==""?s=new RegExp(c,l):c&&(s=new RegExp(c.source,l)),s},u.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(c){var i=this.__position,s=this.readUntilAfter(c);return this.__position=i,s},u.prototype.lookBack=function(c){var i=this.__position-1;return i>=c.length&&this.__input.substring(i-c.length,i).toLowerCase()===c},e.exports.InputScanner=u}),,,,,(function(e){function r(u,c){u=typeof u=="string"?u:u.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+c,"g")}r.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(u);i;)c[i[1]]=i[2],i=this.__directive_pattern.exec(u);return c},r.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r}),,(function(e,r,u){var c=u(16).Beautifier,i=u(17).Options;function s(l,h){var p=new c(l,h);return p.beautify()}e.exports=s,e.exports.defaultOptions=function(){return new i}}),(function(e,r,u){var c=u(17).Options,i=u(2).Output,s=u(8).InputScanner,l=u(13).Directives,h=new l(/\/\*/,/\*\//),p=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,A=/\s/,b=/(?:\s|\n)+/g,D=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,T=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(L,I){this._source_text=L||"",this._options=new c(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}y.prototype.eatString=function(L){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(L.indexOf(this._ch)!==-1||this._ch===`
|
|
25
25
|
`)break;this._ch=this._input.next()}return I},y.prototype.eatWhitespace=function(L){for(var I=A.test(this._input.peek()),N=0;A.test(this._input.peek());)this._ch=this._input.next(),L&&this._ch===`
|
|
26
26
|
`&&(N===0||N<this._options.max_preserve_newlines)&&(N++,this._output.add_new_line(!0));return I},y.prototype.foundNestedPseudoClass=function(){for(var L=0,I=1,N=this._input.peek(I);N;){if(N==="{")return!0;if(N==="(")L+=1;else if(N===")"){if(L===0)return!1;L-=1}else if(N===";"||N==="}")return!1;I++,N=this._input.peek(I)}return!1},y.prototype.print_string=function(L){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(L)},y.prototype.preserveSingleSpace=function(L){L&&(this._output.space_before_token=!0)},y.prototype.indent=function(){this._indentLevel++},y.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L=this._source_text,I=this._options.eol;I==="auto"&&(I=`
|
|
27
27
|
`,L&&p.test(L||"")&&(I=L.match(p)[0])),L=L.replace(m,`
|
|
28
28
|
`);var N=L.match(/^[\t ]*/)[0];this._output=new i(this._options,N),this._input=new s(L),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var F=0,f=!1,d=!1,g=!1,R=!1,v=!1,_=this._ch,C=!1,E,k,x;E=this._input.read(b),k=E!=="",x=_,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),_=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var M=this._input.read(D),B=h.get_directives(M);B&&B.ignore==="start"&&(M+=h.readIgnored(this._input)),this.print_string(M),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(T)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(k),this.print_string(this._ch);var O=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);O.match(/[ :]$/)&&(O=this.eatString(": ").replace(/\s+$/,""),this.print_string(O),this._output.space_before_token=!0),F===0&&O.indexOf(":")!==-1&&(d=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(k),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var z=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);z.match(/[ :]$/)&&(z=this.eatString(": ").replace(/\s+$/,""),this.print_string(z),this._output.space_before_token=!0),F===0&&z.indexOf(":")!==-1?(d=!0,this.indent()):z in this.NESTED_AT_RULE?(this._nestedLevel+=1,z in this.CONDITIONAL_GROUP_RULE&&(g=!0)):F===0&&!d&&(R=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(k),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")d&&(d=!1,this.outdent()),R=!1,g?(g=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(x==="("?this._output.space_before_token=!1:x!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),x==="{"&&this._output.trim(!0),d&&(this.outdent(),d=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var U=0;U<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;U++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[U])){C=!0;break}(f||g)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!R&&F===0?(this.print_string(":"),d||(d=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var P=x==='"'||x==="'";this.preserveSingleSpace(P||k),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")C=!1,F===0?(d&&(this.outdent(),d=!1),R=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),F++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),F&&(F--,this.outdent()));else{var j=!1;this._input.lookBack("with")&&(j=!0),this.preserveSingleSpace(k||j),this.print_string(this._ch),d&&x==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),F++,this.indent())}else if(this._ch===")")F&&(F--,this.outdent()),v&&this._input.peek()===";"&&this._options.selector_separator_newline&&(v=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!d||v)&&F===0&&!R?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!d&&F===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&A.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(k),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),A.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var K=x==='"'||x==="'";this.preserveSingleSpace(K||k),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
29
|
-
`&&C&&this._output.add_new_line()}var ae=this._output.get_code(I);return ae},e.exports.Beautifier=y},function(e,r,u){var c=u(6).Options;function i(s){c.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var l=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||l;var h=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var p=0;p<h.length;p++)h[p]!=="expand"?this.brace_style="collapse":this.brace_style=h[p]}i.prototype=new c,e.exports.Options=i}],n={};function o(e){var r=n[e];if(r!==void 0)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}var a=o(15);mn=a})();var fn=mn;var gn;(function(){"use strict";var t=[,,function(e){function r(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}r.prototype.clone_empty=function(){var i=new r(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},r.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},r.prototype.has_match=function(i){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(i))return!0;return!1},r.prototype.set_indent=function(i,s){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return this.__items.length===0},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(i){this.__items.push(i);var s=i.lastIndexOf(`
|
|
29
|
+
`&&C&&this._output.add_new_line()}var ae=this._output.get_code(I);return ae},e.exports.Beautifier=y}),(function(e,r,u){var c=u(6).Options;function i(s){c.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var l=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||l;var h=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var p=0;p<h.length;p++)h[p]!=="expand"?this.brace_style="collapse":this.brace_style=h[p]}i.prototype=new c,e.exports.Options=i})],n={};function o(e){var r=n[e];if(r!==void 0)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}var a=o(15);mn=a})();var fn=mn;var gn;(function(){"use strict";var t=[,,(function(e){function r(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}r.prototype.clone_empty=function(){var i=new r(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},r.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},r.prototype.has_match=function(i){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(i))return!0;return!1},r.prototype.set_indent=function(i,s){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return this.__items.length===0},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(i){this.__items.push(i);var s=i.lastIndexOf(`
|
|
30
30
|
`);s!==-1?this.__character_count=i.length-s:this.__character_count+=i.length},r.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function u(i,s){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),s=s||"",i.indent_level>0&&(s=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}u.prototype.get_indent_size=function(i,s){var l=this.__base_string_length;return s=s||0,i<0&&(l=0),l+=i*this.__indent_size,l+=s,l},u.prototype.get_indent_string=function(i,s){var l=this.__base_string;return s=s||0,i<0&&(i=0,l=""),s+=i*this.__indent_size,this.__ensure_cache(s),l+=this.__cache[s],l},u.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var i=this.__cache.length,s=0,l="";this.__indent_size&&i>=this.__indent_size&&(s=Math.floor(i/this.__indent_size),i-=s*this.__indent_size,l=new Array(s+1).join(this.__indent_string)),i&&(l+=new Array(i+1).join(" ")),this.__cache.push(l)};function c(i,s){this.__indent_cache=new u(i,s),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(i,s){return this.__indent_cache.get_indent_string(i,s)},c.prototype.get_indent_size=function(i,s){return this.__indent_cache.get_indent_size(i,s)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(i){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
31
31
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var l=this.__lines.join(`
|
|
32
32
|
`);return i!==`
|
|
33
|
-
`&&(l=l.replace(/[\n]/g,i)),l},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(i,s){return i=i||0,s=s||0,this.next_line.set_indent(i,s),this.__lines.length>1?(this.current_line.set_indent(i,s),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(i){for(var s=0;s<i.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(i){for(var s=this.__lines.length;i<s;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(i,s){for(var l=this.__lines.length-2;l>=0;){var h=this.__lines[l];if(h.is_empty())break;if(h.item(0).indexOf(i)!==0&&h.item(-1)!==s){this.__lines.splice(l+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},e.exports.Output=c},function(e){function r(u,c,i,s){this.type=u,this.text=c,this.comments_before=null,this.newlines=i||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=r},,,function(e){function r(i,s){this.raw_options=u(i,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}r.prototype._get_array=function(i,s){var l=this.raw_options[i],h=s||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(h=l.concat()):typeof l=="string"&&(h=l.split(/[^a-zA-Z0-9_\/\-]+/)),h},r.prototype._get_boolean=function(i,s){var l=this.raw_options[i],h=l===void 0?!!s:!!l;return h},r.prototype._get_characters=function(i,s){var l=this.raw_options[i],h=s||"";return typeof l=="string"&&(h=l.replace(/\\r/,"\r").replace(/\\n/,`
|
|
33
|
+
`&&(l=l.replace(/[\n]/g,i)),l},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(i,s){return i=i||0,s=s||0,this.next_line.set_indent(i,s),this.__lines.length>1?(this.current_line.set_indent(i,s),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(i){for(var s=0;s<i.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(i){for(var s=this.__lines.length;i<s;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(i,s){for(var l=this.__lines.length-2;l>=0;){var h=this.__lines[l];if(h.is_empty())break;if(h.item(0).indexOf(i)!==0&&h.item(-1)!==s){this.__lines.splice(l+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},e.exports.Output=c}),(function(e){function r(u,c,i,s){this.type=u,this.text=c,this.comments_before=null,this.newlines=i||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=r}),,,(function(e){function r(i,s){this.raw_options=u(i,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}r.prototype._get_array=function(i,s){var l=this.raw_options[i],h=s||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(h=l.concat()):typeof l=="string"&&(h=l.split(/[^a-zA-Z0-9_\/\-]+/)),h},r.prototype._get_boolean=function(i,s){var l=this.raw_options[i],h=l===void 0?!!s:!!l;return h},r.prototype._get_characters=function(i,s){var l=this.raw_options[i],h=s||"";return typeof l=="string"&&(h=l.replace(/\\r/,"\r").replace(/\\n/,`
|
|
34
34
|
`).replace(/\\t/," ")),h},r.prototype._get_number=function(i,s){var l=this.raw_options[i];s=parseInt(s,10),isNaN(s)&&(s=0);var h=parseInt(l,10);return isNaN(h)&&(h=s),h},r.prototype._get_selection=function(i,s,l){var h=this._get_selection_list(i,s,l);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values:
|
|
35
35
|
`+s+`
|
|
36
36
|
You passed in: '`+this.raw_options[i]+"'");return h[0]},r.prototype._get_selection_list=function(i,s,l){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(l=l||[s[0]],!this._is_valid_selection(l,s))throw new Error("Invalid Default Value!");var h=this._get_array(i,l);if(!this._is_valid_selection(h,s))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values:
|
|
37
37
|
`+s+`
|
|
38
|
-
You passed in: '`+this.raw_options[i]+"'");return h},r.prototype._is_valid_selection=function(i,s){return i.length&&s.length&&!i.some(function(l){return s.indexOf(l)===-1})};function u(i,s){var l={};i=c(i);var h;for(h in i)h!==s&&(l[h]=i[h]);if(s&&i[s])for(h in i[s])l[h]=i[s][h];return l}function c(i){var s={},l;for(l in i){var h=l.replace(/-/g,"_");s[h]=i[l]}return s}e.exports.Options=r,e.exports.normalizeOpts=c,e.exports.mergeOpts=u},,function(e){var r=RegExp.prototype.hasOwnProperty("sticky");function u(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},u.prototype.peek=function(c){var i=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(i=this.__input.charAt(c)),i},u.prototype.__match=function(c,i){c.lastIndex=i;var s=c.exec(this.__input);return s&&!(r&&c.sticky)&&s.index!==i&&(s=null),s},u.prototype.test=function(c,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(c,i):!1},u.prototype.testChar=function(c,i){var s=this.peek(i);return c.lastIndex=0,s!==null&&c.test(s)},u.prototype.match=function(c){var i=this.__match(c,this.__position);return i?this.__position+=i[0].length:i=null,i},u.prototype.read=function(c,i,s){var l="",h;return c&&(h=this.match(c),h&&(l+=h[0])),i&&(h||!c)&&(l+=this.readUntil(i,s)),l},u.prototype.readUntil=function(c,i){var s="",l=this.__position;c.lastIndex=this.__position;var h=c.exec(this.__input);return h?(l=h.index,i&&(l+=h[0].length)):l=this.__input_length,s=this.__input.substring(this.__position,l),this.__position=l,s},u.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},u.prototype.get_regexp=function(c,i){var s=null,l="g";return i&&r&&(l="y"),typeof c=="string"&&c!==""?s=new RegExp(c,l):c&&(s=new RegExp(c.source,l)),s},u.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(c){var i=this.__position,s=this.readUntilAfter(c);return this.__position=i,s},u.prototype.lookBack=function(c){var i=this.__position-1;return i>=c.length&&this.__input.substring(i-c.length,i).toLowerCase()===c},e.exports.InputScanner=u},function(e,r,u){var c=u(8).InputScanner,i=u(3).Token,s=u(10).TokenStream,l=u(11).WhitespacePattern,h={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},p=function(m,A){this._input=new c(m),this._options=A||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new l(this._input)};p.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var m,A=new i(h.START,""),b=null,D=[],T=new s;A.type!==h.EOF;){for(m=this._get_next_token(A,b);this._is_comment(m);)T.add(m),m=this._get_next_token(A,b);T.isEmpty()||(m.comments_before=T,T=new s),m.parent=b,this._is_opening(m)?(D.push(b),b=m):b&&this._is_closing(m,b)&&(m.opened=b,b.closed=m,b=D.pop(),m.parent=b),m.previous=A,A.next=m,this.__tokens.add(m),A=m}return this.__tokens},p.prototype._is_first_token=function(){return this.__tokens.isEmpty()},p.prototype._reset=function(){},p.prototype._get_next_token=function(m,A){this._readWhitespace();var b=this._input.read(/.+/g);return b?this._create_token(h.RAW,b):this._create_token(h.EOF,"")},p.prototype._is_comment=function(m){return!1},p.prototype._is_opening=function(m){return!1},p.prototype._is_closing=function(m,A){return!1},p.prototype._create_token=function(m,A){var b=new i(m,A,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return b},p.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=p,e.exports.TOKEN=h},function(e){function r(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}r.prototype.restart=function(){this.__position=0},r.prototype.isEmpty=function(){return this.__tokens_length===0},r.prototype.hasNext=function(){return this.__position<this.__tokens_length},r.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},r.prototype.peek=function(u){var c=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(c=this.__tokens[u]),c},r.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},e.exports.TokenStream=r},function(e,r,u){var c=u(12).Pattern;function i(s,l){c.call(this,s,l),l?this._line_regexp=this._input.get_regexp(l._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new c,i.prototype.__set_whitespace_patterns=function(s,l){s+="\\t ",l+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+l+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+l+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var l=this.__split(this._newline_regexp,s);this.newline_count=l.length-1,this.whitespace_before_token=l[this.newline_count]}return s},i.prototype.matching=function(s,l){var h=this._create();return h.__set_whitespace_patterns(s,l),h._update(),h},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(s,l){s.lastIndex=0;for(var h=0,p=[],m=s.exec(l);m;)p.push(l.substring(h,m.index)),h=m.index+m[0].length,m=s.exec(l);return h<l.length?p.push(l.substring(h,l.length)):p.push(""),p},e.exports.WhitespacePattern=i},function(e){function r(u,c){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,c&&(this._starting_pattern=this._input.get_regexp(c._starting_pattern,!0),this._match_pattern=this._input.get_regexp(c._match_pattern,!0),this._until_pattern=this._input.get_regexp(c._until_pattern),this._until_after=c._until_after)}r.prototype.read=function(){var u=this._input.read(this._starting_pattern);return(!this._starting_pattern||u)&&(u+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),u},r.prototype.read_match=function(){return this._input.match(this._match_pattern)},r.prototype.until_after=function(u){var c=this._create();return c._until_after=!0,c._until_pattern=this._input.get_regexp(u),c._update(),c},r.prototype.until=function(u){var c=this._create();return c._until_after=!1,c._until_pattern=this._input.get_regexp(u),c._update(),c},r.prototype.starting_with=function(u){var c=this._create();return c._starting_pattern=this._input.get_regexp(u,!0),c._update(),c},r.prototype.matching=function(u){var c=this._create();return c._match_pattern=this._input.get_regexp(u,!0),c._update(),c},r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){},e.exports.Pattern=r},function(e){function r(u,c){u=typeof u=="string"?u:u.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+c,"g")}r.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(u);i;)c[i[1]]=i[2],i=this.__directive_pattern.exec(u);return c},r.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r},function(e,r,u){var c=u(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(l,h){c.call(this,l,h),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),h&&(this.__template_pattern=this._input.get_regexp(h.__template_pattern),this._excluded=Object.assign(this._excluded,h._excluded),this._disabled=Object.assign(this._disabled,h._disabled));var p=new c(l);this.__patterns={handlebars_comment:p.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:p.starting_with(/{{{/).until_after(/}}}/),handlebars:p.starting_with(/{{/).until_after(/}}/),php:p.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:p.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:p.starting_with(/{%/).until_after(/%}/),django_value:p.starting_with(/{{/).until_after(/}}/),django_comment:p.starting_with(/{#/).until_after(/#}/),smarty:p.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:p.starting_with(/{\*/).until_after(/\*}/),smarty_literal:p.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new c,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(l){var h=this._create();return h._disabled[l]=!0,h._update(),h},s.prototype.read_options=function(l){var h=this._create();for(var p in i)h._disabled[p]=l.templating.indexOf(p)===-1;return h._update(),h},s.prototype.exclude=function(l){var h=this._create();return h._excluded[l]=!0,h._update(),h},s.prototype.read=function(){var l="";this._match_pattern?l=this._input.read(this._starting_pattern):l=this._input.read(this._starting_pattern,this.__template_pattern);for(var h=this._read_template();h;)this._match_pattern?h+=this._input.read(this._match_pattern):h+=this._input.readUntil(this.__template_pattern),l+=h,h=this._read_template();return this._until_after&&(l+=this._input.readUntilAfter(this._until_pattern)),l},s.prototype.__set_templated_pattern=function(){var l=[];this._disabled.php||l.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||l.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||l.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(l.push(this.__patterns.django._starting_pattern.source),l.push(this.__patterns.django_value._starting_pattern.source),l.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||l.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&l.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+l.join("|")+")")},s.prototype._read_template=function(){var l="",h=this._input.peek();if(h==="<"){var p=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&p==="?"&&(l=l||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&p==="%"&&(l=l||this.__patterns.erb.read())}else h==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(l=l||this.__patterns.handlebars_comment.read(),l=l||this.__patterns.handlebars_unescaped.read(),l=l||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(l=l||this.__patterns.django_value.read()),this._excluded.django||(l=l||this.__patterns.django_comment.read(),l=l||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(l=l||this.__patterns.smarty_comment.read(),l=l||this.__patterns.smarty_literal.read(),l=l||this.__patterns.smarty.read()));return l},e.exports.TemplatablePattern=s},,,,function(e,r,u){var c=u(19).Beautifier,i=u(20).Options;function s(l,h,p,m){var A=new c(l,h,p,m);return A.beautify()}e.exports=s,e.exports.defaultOptions=function(){return new i}},function(e,r,u){var c=u(20).Options,i=u(2).Output,s=u(21).Tokenizer,l=u(21).TOKEN,h=/\r\n|[\r\n]/,p=/\r\n|[\r\n]/g,m=function(f,d){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=f.max_preserve_newlines,this.preserve_newlines=f.preserve_newlines,this._output=new i(f,d)};m.prototype.current_line_has_match=function(f){return this._output.current_line.has_match(f)},m.prototype.set_space_before_token=function(f,d){this._output.space_before_token=f,this._output.non_breaking_space=d},m.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},m.prototype.add_raw_token=function(f){this._output.add_raw_token(f)},m.prototype.print_preserved_newlines=function(f){var d=0;f.type!==l.TEXT&&f.previous.type!==l.TEXT&&(d=f.newlines?1:0),this.preserve_newlines&&(d=f.newlines<this.max_preserve_newlines+1?f.newlines:this.max_preserve_newlines+1);for(var g=0;g<d;g++)this.print_newline(g>0);return d!==0},m.prototype.traverse_whitespace=function(f){return f.whitespace_before||f.newlines?(this.print_preserved_newlines(f)||(this._output.space_before_token=!0),!0):!1},m.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},m.prototype.print_newline=function(f){this._output.add_new_line(f)},m.prototype.print_token=function(f){f.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(f.text))},m.prototype.indent=function(){this.indent_level++},m.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},m.prototype.get_full_indent=function(f){return f=this.indent_level+(f||0),f<1?"":this._output.get_indent_string(f)};var A=function(f){for(var d=null,g=f.next;g.type!==l.EOF&&f.closed!==g;){if(g.type===l.ATTRIBUTE&&g.text==="type"){g.next&&g.next.type===l.EQUALS&&g.next.next&&g.next.next.type===l.VALUE&&(d=g.next.next.text);break}g=g.next}return d},b=function(f,d){var g=null,R=null;return d.closed?(f==="script"?g="text/javascript":f==="style"&&(g="text/css"),g=A(d)||g,g.search("text/css")>-1?R="css":g.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?R="javascript":g.search(/(text|application|dojo)\/(x-)?(html)/)>-1?R="html":g.search(/test\/null/)>-1&&(R="null"),R):null};function D(f,d){return d.indexOf(f)!==-1}function T(f,d,g){this.parent=f||null,this.tag=d?d.tag_name:"",this.indent_level=g||0,this.parser_token=d||null}function y(f){this._printer=f,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(f){var d=new T(this._current_frame,f,this._printer.indent_level);this._current_frame=d},y.prototype._try_pop_frame=function(f){var d=null;return f&&(d=f.parser_token,this._printer.indent_level=f.indent_level,this._current_frame=f.parent),d},y.prototype._get_frame=function(f,d){for(var g=this._current_frame;g&&f.indexOf(g.tag)===-1;){if(d&&d.indexOf(g.tag)!==-1){g=null;break}g=g.parent}return g},y.prototype.try_pop=function(f,d){var g=this._get_frame([f],d);return this._try_pop_frame(g)},y.prototype.indent_to_tag=function(f){var d=this._get_frame(f);d&&(this._printer.indent_level=d.indent_level)};function L(f,d,g,R){this._source_text=f||"",d=d||{},this._js_beautify=g,this._css_beautify=R,this._tag_stack=null;var v=new c(d,"html");this._options=v,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var f=this._source_text,d=this._options.eol;this._options.eol==="auto"&&(d=`
|
|
38
|
+
You passed in: '`+this.raw_options[i]+"'");return h},r.prototype._is_valid_selection=function(i,s){return i.length&&s.length&&!i.some(function(l){return s.indexOf(l)===-1})};function u(i,s){var l={};i=c(i);var h;for(h in i)h!==s&&(l[h]=i[h]);if(s&&i[s])for(h in i[s])l[h]=i[s][h];return l}function c(i){var s={},l;for(l in i){var h=l.replace(/-/g,"_");s[h]=i[l]}return s}e.exports.Options=r,e.exports.normalizeOpts=c,e.exports.mergeOpts=u}),,(function(e){var r=RegExp.prototype.hasOwnProperty("sticky");function u(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},u.prototype.peek=function(c){var i=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(i=this.__input.charAt(c)),i},u.prototype.__match=function(c,i){c.lastIndex=i;var s=c.exec(this.__input);return s&&!(r&&c.sticky)&&s.index!==i&&(s=null),s},u.prototype.test=function(c,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(c,i):!1},u.prototype.testChar=function(c,i){var s=this.peek(i);return c.lastIndex=0,s!==null&&c.test(s)},u.prototype.match=function(c){var i=this.__match(c,this.__position);return i?this.__position+=i[0].length:i=null,i},u.prototype.read=function(c,i,s){var l="",h;return c&&(h=this.match(c),h&&(l+=h[0])),i&&(h||!c)&&(l+=this.readUntil(i,s)),l},u.prototype.readUntil=function(c,i){var s="",l=this.__position;c.lastIndex=this.__position;var h=c.exec(this.__input);return h?(l=h.index,i&&(l+=h[0].length)):l=this.__input_length,s=this.__input.substring(this.__position,l),this.__position=l,s},u.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},u.prototype.get_regexp=function(c,i){var s=null,l="g";return i&&r&&(l="y"),typeof c=="string"&&c!==""?s=new RegExp(c,l):c&&(s=new RegExp(c.source,l)),s},u.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(c){var i=this.__position,s=this.readUntilAfter(c);return this.__position=i,s},u.prototype.lookBack=function(c){var i=this.__position-1;return i>=c.length&&this.__input.substring(i-c.length,i).toLowerCase()===c},e.exports.InputScanner=u}),(function(e,r,u){var c=u(8).InputScanner,i=u(3).Token,s=u(10).TokenStream,l=u(11).WhitespacePattern,h={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},p=function(m,A){this._input=new c(m),this._options=A||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new l(this._input)};p.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var m,A=new i(h.START,""),b=null,D=[],T=new s;A.type!==h.EOF;){for(m=this._get_next_token(A,b);this._is_comment(m);)T.add(m),m=this._get_next_token(A,b);T.isEmpty()||(m.comments_before=T,T=new s),m.parent=b,this._is_opening(m)?(D.push(b),b=m):b&&this._is_closing(m,b)&&(m.opened=b,b.closed=m,b=D.pop(),m.parent=b),m.previous=A,A.next=m,this.__tokens.add(m),A=m}return this.__tokens},p.prototype._is_first_token=function(){return this.__tokens.isEmpty()},p.prototype._reset=function(){},p.prototype._get_next_token=function(m,A){this._readWhitespace();var b=this._input.read(/.+/g);return b?this._create_token(h.RAW,b):this._create_token(h.EOF,"")},p.prototype._is_comment=function(m){return!1},p.prototype._is_opening=function(m){return!1},p.prototype._is_closing=function(m,A){return!1},p.prototype._create_token=function(m,A){var b=new i(m,A,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return b},p.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=p,e.exports.TOKEN=h}),(function(e){function r(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}r.prototype.restart=function(){this.__position=0},r.prototype.isEmpty=function(){return this.__tokens_length===0},r.prototype.hasNext=function(){return this.__position<this.__tokens_length},r.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},r.prototype.peek=function(u){var c=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(c=this.__tokens[u]),c},r.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},e.exports.TokenStream=r}),(function(e,r,u){var c=u(12).Pattern;function i(s,l){c.call(this,s,l),l?this._line_regexp=this._input.get_regexp(l._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new c,i.prototype.__set_whitespace_patterns=function(s,l){s+="\\t ",l+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+l+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+l+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var l=this.__split(this._newline_regexp,s);this.newline_count=l.length-1,this.whitespace_before_token=l[this.newline_count]}return s},i.prototype.matching=function(s,l){var h=this._create();return h.__set_whitespace_patterns(s,l),h._update(),h},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(s,l){s.lastIndex=0;for(var h=0,p=[],m=s.exec(l);m;)p.push(l.substring(h,m.index)),h=m.index+m[0].length,m=s.exec(l);return h<l.length?p.push(l.substring(h,l.length)):p.push(""),p},e.exports.WhitespacePattern=i}),(function(e){function r(u,c){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,c&&(this._starting_pattern=this._input.get_regexp(c._starting_pattern,!0),this._match_pattern=this._input.get_regexp(c._match_pattern,!0),this._until_pattern=this._input.get_regexp(c._until_pattern),this._until_after=c._until_after)}r.prototype.read=function(){var u=this._input.read(this._starting_pattern);return(!this._starting_pattern||u)&&(u+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),u},r.prototype.read_match=function(){return this._input.match(this._match_pattern)},r.prototype.until_after=function(u){var c=this._create();return c._until_after=!0,c._until_pattern=this._input.get_regexp(u),c._update(),c},r.prototype.until=function(u){var c=this._create();return c._until_after=!1,c._until_pattern=this._input.get_regexp(u),c._update(),c},r.prototype.starting_with=function(u){var c=this._create();return c._starting_pattern=this._input.get_regexp(u,!0),c._update(),c},r.prototype.matching=function(u){var c=this._create();return c._match_pattern=this._input.get_regexp(u,!0),c._update(),c},r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){},e.exports.Pattern=r}),(function(e){function r(u,c){u=typeof u=="string"?u:u.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+c,"g")}r.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(u);i;)c[i[1]]=i[2],i=this.__directive_pattern.exec(u);return c},r.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r}),(function(e,r,u){var c=u(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(l,h){c.call(this,l,h),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),h&&(this.__template_pattern=this._input.get_regexp(h.__template_pattern),this._excluded=Object.assign(this._excluded,h._excluded),this._disabled=Object.assign(this._disabled,h._disabled));var p=new c(l);this.__patterns={handlebars_comment:p.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:p.starting_with(/{{{/).until_after(/}}}/),handlebars:p.starting_with(/{{/).until_after(/}}/),php:p.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:p.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:p.starting_with(/{%/).until_after(/%}/),django_value:p.starting_with(/{{/).until_after(/}}/),django_comment:p.starting_with(/{#/).until_after(/#}/),smarty:p.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:p.starting_with(/{\*/).until_after(/\*}/),smarty_literal:p.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new c,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(l){var h=this._create();return h._disabled[l]=!0,h._update(),h},s.prototype.read_options=function(l){var h=this._create();for(var p in i)h._disabled[p]=l.templating.indexOf(p)===-1;return h._update(),h},s.prototype.exclude=function(l){var h=this._create();return h._excluded[l]=!0,h._update(),h},s.prototype.read=function(){var l="";this._match_pattern?l=this._input.read(this._starting_pattern):l=this._input.read(this._starting_pattern,this.__template_pattern);for(var h=this._read_template();h;)this._match_pattern?h+=this._input.read(this._match_pattern):h+=this._input.readUntil(this.__template_pattern),l+=h,h=this._read_template();return this._until_after&&(l+=this._input.readUntilAfter(this._until_pattern)),l},s.prototype.__set_templated_pattern=function(){var l=[];this._disabled.php||l.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||l.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||l.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(l.push(this.__patterns.django._starting_pattern.source),l.push(this.__patterns.django_value._starting_pattern.source),l.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||l.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&l.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+l.join("|")+")")},s.prototype._read_template=function(){var l="",h=this._input.peek();if(h==="<"){var p=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&p==="?"&&(l=l||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&p==="%"&&(l=l||this.__patterns.erb.read())}else h==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(l=l||this.__patterns.handlebars_comment.read(),l=l||this.__patterns.handlebars_unescaped.read(),l=l||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(l=l||this.__patterns.django_value.read()),this._excluded.django||(l=l||this.__patterns.django_comment.read(),l=l||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(l=l||this.__patterns.smarty_comment.read(),l=l||this.__patterns.smarty_literal.read(),l=l||this.__patterns.smarty.read()));return l},e.exports.TemplatablePattern=s}),,,,(function(e,r,u){var c=u(19).Beautifier,i=u(20).Options;function s(l,h,p,m){var A=new c(l,h,p,m);return A.beautify()}e.exports=s,e.exports.defaultOptions=function(){return new i}}),(function(e,r,u){var c=u(20).Options,i=u(2).Output,s=u(21).Tokenizer,l=u(21).TOKEN,h=/\r\n|[\r\n]/,p=/\r\n|[\r\n]/g,m=function(f,d){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=f.max_preserve_newlines,this.preserve_newlines=f.preserve_newlines,this._output=new i(f,d)};m.prototype.current_line_has_match=function(f){return this._output.current_line.has_match(f)},m.prototype.set_space_before_token=function(f,d){this._output.space_before_token=f,this._output.non_breaking_space=d},m.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},m.prototype.add_raw_token=function(f){this._output.add_raw_token(f)},m.prototype.print_preserved_newlines=function(f){var d=0;f.type!==l.TEXT&&f.previous.type!==l.TEXT&&(d=f.newlines?1:0),this.preserve_newlines&&(d=f.newlines<this.max_preserve_newlines+1?f.newlines:this.max_preserve_newlines+1);for(var g=0;g<d;g++)this.print_newline(g>0);return d!==0},m.prototype.traverse_whitespace=function(f){return f.whitespace_before||f.newlines?(this.print_preserved_newlines(f)||(this._output.space_before_token=!0),!0):!1},m.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},m.prototype.print_newline=function(f){this._output.add_new_line(f)},m.prototype.print_token=function(f){f.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(f.text))},m.prototype.indent=function(){this.indent_level++},m.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},m.prototype.get_full_indent=function(f){return f=this.indent_level+(f||0),f<1?"":this._output.get_indent_string(f)};var A=function(f){for(var d=null,g=f.next;g.type!==l.EOF&&f.closed!==g;){if(g.type===l.ATTRIBUTE&&g.text==="type"){g.next&&g.next.type===l.EQUALS&&g.next.next&&g.next.next.type===l.VALUE&&(d=g.next.next.text);break}g=g.next}return d},b=function(f,d){var g=null,R=null;return d.closed?(f==="script"?g="text/javascript":f==="style"&&(g="text/css"),g=A(d)||g,g.search("text/css")>-1?R="css":g.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?R="javascript":g.search(/(text|application|dojo)\/(x-)?(html)/)>-1?R="html":g.search(/test\/null/)>-1&&(R="null"),R):null};function D(f,d){return d.indexOf(f)!==-1}function T(f,d,g){this.parent=f||null,this.tag=d?d.tag_name:"",this.indent_level=g||0,this.parser_token=d||null}function y(f){this._printer=f,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(f){var d=new T(this._current_frame,f,this._printer.indent_level);this._current_frame=d},y.prototype._try_pop_frame=function(f){var d=null;return f&&(d=f.parser_token,this._printer.indent_level=f.indent_level,this._current_frame=f.parent),d},y.prototype._get_frame=function(f,d){for(var g=this._current_frame;g&&f.indexOf(g.tag)===-1;){if(d&&d.indexOf(g.tag)!==-1){g=null;break}g=g.parent}return g},y.prototype.try_pop=function(f,d){var g=this._get_frame([f],d);return this._try_pop_frame(g)},y.prototype.indent_to_tag=function(f){var d=this._get_frame(f);d&&(this._printer.indent_level=d.indent_level)};function L(f,d,g,R){this._source_text=f||"",d=d||{},this._js_beautify=g,this._css_beautify=R,this._tag_stack=null;var v=new c(d,"html");this._options=v,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var f=this._source_text,d=this._options.eol;this._options.eol==="auto"&&(d=`
|
|
39
39
|
`,f&&h.test(f)&&(d=f.match(h)[0])),f=f.replace(p,`
|
|
40
40
|
`);var g=f.match(/^[\t ]*/)[0],R={text:"",type:""},v=new I,_=new m(this._options,g),C=new s(f,this._options).tokenize();this._tag_stack=new y(_);for(var E=null,k=C.next();k.type!==l.EOF;)k.type===l.TAG_OPEN||k.type===l.COMMENT?(E=this._handle_tag_open(_,k,v,R,C),v=E):k.type===l.ATTRIBUTE||k.type===l.EQUALS||k.type===l.VALUE||k.type===l.TEXT&&!v.tag_complete?E=this._handle_inside_tag(_,k,v,R):k.type===l.TAG_CLOSE?E=this._handle_tag_close(_,k,v):k.type===l.TEXT?E=this._handle_text(_,k,v):k.type===l.CONTROL_FLOW_OPEN?E=this._handle_control_flow_open(_,k):k.type===l.CONTROL_FLOW_CLOSE?E=this._handle_control_flow_close(_,k):_.add_raw_token(k),R=E,k=C.next();var x=_._output.get_code(d);return x},L.prototype._handle_control_flow_open=function(f,d){var g={text:d.text,type:d.type};return f.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),d.newlines?f.print_preserved_newlines(d):f.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),f.print_token(d),f.indent(),g},L.prototype._handle_control_flow_close=function(f,d){var g={text:d.text,type:d.type};return f.deindent(),d.newlines?f.print_preserved_newlines(d):f.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),f.print_token(d),g},L.prototype._handle_tag_close=function(f,d,g){var R={text:d.text,type:d.type};return f.alignment_size=0,g.tag_complete=!0,f.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),g.is_unformatted?f.add_raw_token(d):(g.tag_start_char==="<"&&(f.set_space_before_token(d.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&g.has_wrapped_attrs&&f.print_newline(!1)),f.print_token(d)),g.indent_content&&!(g.is_unformatted||g.is_content_unformatted)&&(f.indent(),g.indent_content=!1),!g.is_inline_element&&!(g.is_unformatted||g.is_content_unformatted)&&f.set_wrap_point(),R},L.prototype._handle_inside_tag=function(f,d,g,R){var v=g.has_wrapped_attrs,_={text:d.text,type:d.type};return f.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),g.is_unformatted?f.add_raw_token(d):g.tag_start_char==="{"&&d.type===l.TEXT?f.print_preserved_newlines(d)?(d.newlines=0,f.add_raw_token(d)):f.print_token(d):(d.type===l.ATTRIBUTE?f.set_space_before_token(!0):(d.type===l.EQUALS||d.type===l.VALUE&&d.previous.type===l.EQUALS)&&f.set_space_before_token(!1),d.type===l.ATTRIBUTE&&g.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(f.traverse_whitespace(d),v=v||d.newlines!==0),this._is_wrap_attributes_force&&g.attr_count>=this._options.wrap_attributes_min_attrs&&(R.type!==l.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(f.print_newline(!1),v=!0)),f.print_token(d),v=v||f.previous_token_wrapped(),g.has_wrapped_attrs=v),_},L.prototype._handle_text=function(f,d,g){var R={text:d.text,type:"TK_CONTENT"};return g.custom_beautifier_name?this._print_custom_beatifier_text(f,d,g):g.is_unformatted||g.is_content_unformatted?f.add_raw_token(d):(f.traverse_whitespace(d),f.print_token(d)),R},L.prototype._print_custom_beatifier_text=function(f,d,g){var R=this;if(d.text!==""){var v=d.text,_,C=1,E="",k="";g.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?_=this._js_beautify:g.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?_=this._css_beautify:g.custom_beautifier_name==="html"&&(_=function(U,P){var j=new L(U,P,R._js_beautify,R._css_beautify);return j.beautify()}),this._options.indent_scripts==="keep"?C=0:this._options.indent_scripts==="separate"&&(C=-f.indent_level);var x=f.get_full_indent(C);if(v=v.replace(/\n[ \t]*$/,""),g.custom_beautifier_name!=="html"&&v[0]==="<"&&v.match(/^(<!--|<!\[CDATA\[)/)){var M=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(v);if(!M){f.add_raw_token(d);return}E=x+M[1]+`
|
|
41
41
|
`,v=M[4],M[5]&&(k=x+M[5]),v=v.replace(/\n[ \t]*$/,""),(M[2]||M[3].indexOf(`
|
|
@@ -45,11 +45,11 @@ You passed in: '`+this.raw_options[i]+"'");return h},r.prototype._is_valid_selec
|
|
|
45
45
|
`)),v=x+v.replace(/\n/g,`
|
|
46
46
|
`+x)}E&&(v?v=E+v+`
|
|
47
47
|
`+k:v=E+k),f.print_newline(!1),v&&(d.text=v,d.whitespace_before="",d.newlines=0,f.add_raw_token(d),f.print_newline(!0))}},L.prototype._handle_tag_open=function(f,d,g,R,v){var _=this._get_tag_open_token(d);if((g.is_unformatted||g.is_content_unformatted)&&!g.is_empty_element&&d.type===l.TAG_OPEN&&!_.is_start_tag?(f.add_raw_token(d),_.start_tag_token=this._tag_stack.try_pop(_.tag_name)):(f.traverse_whitespace(d),this._set_tag_position(f,d,_,g,R),_.is_inline_element||f.set_wrap_point(),f.print_token(d)),_.is_start_tag&&this._is_wrap_attributes_force){var C=0,E;do E=v.peek(C),E.type===l.ATTRIBUTE&&(_.attr_count+=1),C+=1;while(E.type!==l.EOF&&E.type!==l.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(_.alignment_size=d.text.length+1),!_.tag_complete&&!_.is_unformatted&&(f.alignment_size=_.alignment_size),_};var I=function(f,d){if(this.parent=f||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!d)this.tag_complete=!0;else{var g;this.tag_start_char=d.text[0],this.text=d.text,this.tag_start_char==="<"?(g=d.text.match(/^<([^\s>]*)/),this.tag_check=g?g[1]:""):(g=d.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=g?g[1]:"",(d.text.startsWith("{{#>")||d.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&d.next!==null?this.tag_check=d.next.text.split(" ")[0]:this.tag_check=d.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),d.type===l.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||d.closed&&d.closed.text==="/>";var R=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(R=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(R)))}};L.prototype._get_tag_open_token=function(f){var d=new I(this._tag_stack.get_parser_token(),f);return d.alignment_size=this._options.wrap_attributes_indent_size,d.is_end_tag=d.is_end_tag||D(d.tag_check,this._options.void_elements),d.is_empty_element=d.tag_complete||d.is_start_tag&&d.is_end_tag,d.is_unformatted=!d.tag_complete&&D(d.tag_check,this._options.unformatted),d.is_content_unformatted=!d.is_empty_element&&D(d.tag_check,this._options.content_unformatted),d.is_inline_element=D(d.tag_name,this._options.inline)||this._options.inline_custom_elements&&d.tag_name.includes("-")||d.tag_start_char==="{",d},L.prototype._set_tag_position=function(f,d,g,R,v){if(g.is_empty_element||(g.is_end_tag?g.start_tag_token=this._tag_stack.try_pop(g.tag_name):(this._do_optional_end_element(g)&&(g.is_inline_element||f.print_newline(!1)),this._tag_stack.record_tag(g),(g.tag_name==="script"||g.tag_name==="style")&&!(g.is_unformatted||g.is_content_unformatted)&&(g.custom_beautifier_name=b(g.tag_check,d)))),D(g.tag_check,this._options.extra_liners)&&(f.print_newline(!1),f._output.just_added_blankline()||f.print_newline(!0)),g.is_empty_element){if(g.tag_start_char==="{"&&g.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),g.indent_content=!0;var _=f.current_line_has_match(/{{#if/);_||f.print_newline(!1)}g.tag_name==="!--"&&v.type===l.TAG_CLOSE&&R.is_end_tag&&g.text.indexOf(`
|
|
48
|
-
`)===-1||(g.is_inline_element||g.is_unformatted||f.print_newline(!1),this._calcluate_parent_multiline(f,g))}else if(g.is_end_tag){var C=!1;C=g.start_tag_token&&g.start_tag_token.multiline_content,C=C||!g.is_inline_element&&!(R.is_inline_element||R.is_unformatted)&&!(v.type===l.TAG_CLOSE&&g.start_tag_token===R)&&v.type!=="TK_CONTENT",(g.is_content_unformatted||g.is_unformatted)&&(C=!1),C&&f.print_newline(!1)}else g.indent_content=!g.custom_beautifier_name,g.tag_start_char==="<"&&(g.tag_name==="html"?g.indent_content=this._options.indent_inner_html:g.tag_name==="head"?g.indent_content=this._options.indent_head_inner_html:g.tag_name==="body"&&(g.indent_content=this._options.indent_body_inner_html)),!(g.is_inline_element||g.is_unformatted)&&(v.type!=="TK_CONTENT"||g.is_content_unformatted)&&f.print_newline(!1),this._calcluate_parent_multiline(f,g)},L.prototype._calcluate_parent_multiline=function(f,d){d.parent&&f._output.just_added_newline()&&!((d.is_inline_element||d.is_unformatted)&&d.parent.is_inline_element)&&(d.parent.multiline_content=!0)};var N=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],F=["a","audio","del","ins","map","noscript","video"];L.prototype._do_optional_end_element=function(f){var d=null;if(!(f.is_empty_element||!f.is_start_tag||!f.parent)){if(f.tag_name==="body")d=d||this._tag_stack.try_pop("head");else if(f.tag_name==="li")d=d||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(f.tag_name==="dd"||f.tag_name==="dt")d=d||this._tag_stack.try_pop("dt",["dl"]),d=d||this._tag_stack.try_pop("dd",["dl"]);else if(f.parent.tag_name==="p"&&N.indexOf(f.tag_name)!==-1){var g=f.parent.parent;(!g||F.indexOf(g.tag_name)===-1)&&(d=d||this._tag_stack.try_pop("p"))}else f.tag_name==="rp"||f.tag_name==="rt"?(d=d||this._tag_stack.try_pop("rt",["ruby","rtc"]),d=d||this._tag_stack.try_pop("rp",["ruby","rtc"])):f.tag_name==="optgroup"?d=d||this._tag_stack.try_pop("optgroup",["select"]):f.tag_name==="option"?d=d||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):f.tag_name==="colgroup"?d=d||this._tag_stack.try_pop("caption",["table"]):f.tag_name==="thead"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"])):f.tag_name==="tbody"||f.tag_name==="tfoot"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"]),d=d||this._tag_stack.try_pop("thead",["table"]),d=d||this._tag_stack.try_pop("tbody",["table"])):f.tag_name==="tr"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"]),d=d||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(f.tag_name==="th"||f.tag_name==="td")&&(d=d||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),d=d||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return f.parent=this._tag_stack.get_parser_token(),d}},e.exports.Beautifier=L},function(e,r,u){var c=u(6).Options;function i(s){c.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new c,e.exports.Options=i},function(e,r,u){var c=u(9).Tokenizer,i=u(9).TOKEN,s=u(13).Directives,l=u(14).TemplatablePattern,h=u(12).Pattern,p={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},m=new s(/<\!--/,/-->/),A=function(b,D){c.call(this,b,D),this._current_tag_name="";var T=new l(this._input).read_options(this._options),y=new h(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),word_control_flow_close_excluded:T.until(/[\n\r\t <}]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var L=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(L).until_after(L)}};A.prototype=new c,A.prototype._is_comment=function(b){return!1},A.prototype._is_opening=function(b){return b.type===p.TAG_OPEN||b.type===p.CONTROL_FLOW_OPEN},A.prototype._is_closing=function(b,D){return b.type===p.TAG_CLOSE&&D&&((b.text===">"||b.text==="/>")&&D.text[0]==="<"||b.text==="}}"&&D.text[0]==="{"&&D.text[1]==="{")||b.type===p.CONTROL_FLOW_CLOSE&&b.text==="}"&&D.text.endsWith("{")},A.prototype._reset=function(){this._current_tag_name=""},A.prototype._get_next_token=function(b,D){var T=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(p.EOF,""):(T=T||this._read_open_handlebars(y,D),T=T||this._read_attribute(y,b,D),T=T||this._read_close(y,D),T=T||this._read_control_flows(y,D),T=T||this._read_raw_content(y,b,D),T=T||this._read_content_word(y,D),T=T||this._read_comment_or_cdata(y),T=T||this._read_processing(y),T=T||this._read_open(y,D),T=T||this._create_token(p.UNKNOWN,this._input.next()),T)},A.prototype._read_comment_or_cdata=function(b){var D=null,T=null,y=null;if(b==="<"){var L=this._input.peek(1);L==="!"&&(T=this.__patterns.comment.read(),T?(y=m.get_directives(T),y&&y.ignore==="start"&&(T+=m.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(D=this._create_token(p.COMMENT,T),D.directives=y)}return D},A.prototype._read_processing=function(b){var D=null,T=null,y=null;if(b==="<"){var L=this._input.peek(1);(L==="!"||L==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(D=this._create_token(p.COMMENT,T),D.directives=y)}return D},A.prototype._read_open=function(b,D){var T=null,y=null;return(!D||D.type===p.CONTROL_FLOW_OPEN)&&b==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),y=this._create_token(p.TAG_OPEN,T)),y},A.prototype._read_open_handlebars=function(b,D){var T=null,y=null;return(!D||D.type===p.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&b==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),y=this._create_token(p.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),y=this._create_token(p.TAG_OPEN,T))),y},A.prototype._read_control_flows=function(b,D){var T="",y=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return y;if(b==="@"){if(T=this.__patterns.angular_control_flow_start.read(),T==="")return y;for(var L=T.endsWith("(")?1:0,I=0;!(T.endsWith("{")&&L===I);){var N=this._input.next();if(N===null)break;N==="("?L++:N===")"&&I++,T+=N}y=this._create_token(p.CONTROL_FLOW_OPEN,T)}else b==="}"&&D&&D.type===p.CONTROL_FLOW_OPEN&&(T=this._input.next(),y=this._create_token(p.CONTROL_FLOW_CLOSE,T));return y},A.prototype._read_close=function(b,D){var T=null,y=null;return D&&D.type===p.TAG_OPEN&&(D.text[0]==="<"&&(b===">"||b==="/"&&this._input.peek(1)===">")?(T=this._input.next(),b==="/"&&(T+=this._input.next()),y=this._create_token(p.TAG_CLOSE,T)):D.text[0]==="{"&&b==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(p.TAG_CLOSE,"}}"))),y},A.prototype._read_attribute=function(b,D,T){var y=null,L="";if(T&&T.text[0]==="<")if(b==="=")y=this._create_token(p.EQUALS,this._input.next());else if(b==='"'||b==="'"){var I=this._input.next();b==='"'?I+=this.__patterns.double_quote.read():I+=this.__patterns.single_quote.read(),y=this._create_token(p.VALUE,I)}else L=this.__patterns.attribute.read(),L&&(D.type===p.EQUALS?y=this._create_token(p.VALUE,L):y=this._create_token(p.ATTRIBUTE,L));return y},A.prototype._is_content_unformatted=function(b){return this._options.void_elements.indexOf(b)===-1&&(this._options.content_unformatted.indexOf(b)!==-1||this._options.unformatted.indexOf(b)!==-1)},A.prototype._read_raw_content=function(b,D,T){var y="";if(T&&T.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(D.type===p.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var L=D.opened.text.substr(1).toLowerCase();if(L==="script"||L==="style"){var I=this._read_comment_or_cdata(b);if(I)return I.type=p.TEXT,I;y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(L)&&(y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(p.TEXT,y):null},A.prototype._read_content_word=function(b,D){var T="";if(this._options.unformatted_content_delimiter&&b===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=D&&D.type===p.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),T)return this._create_token(p.TEXT,T)},e.exports.Tokenizer=A,e.exports.TOKEN=p}],n={};function o(e){var r=n[e];if(r!==void 0)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}var a=o(18);gn=a})();function bn(t,n){return gn(t,n,pn,fn)}function vn(t,n,o){let a=t.getText(),e=!0,r=0,u=o.tabSize||4;if(n){let s=t.offsetAt(n.start),l=s;for(;l>0&&_n(a,l-1);)l--;l===0||wn(a,l-1)?s=l:l<s&&(s=l+1);let h=t.offsetAt(n.end),p=h;for(;p<a.length&&_n(a,p);)p++;(p===a.length||wn(a,p))&&(h=p),n=W.create(t.positionAt(s),t.positionAt(h));let m=a.substring(0,s);if(new RegExp(/.*[<][^>]*$/).test(m))return a=a.substring(s,h),[{range:n,newText:a}];if(e=h===a.length,a=a.substring(s,h),s!==0){let A=t.offsetAt(q.create(n.start.line,0));r=bi(t.getText(),A,o)}}else n=W.create(q.create(0,0),t.positionAt(a.length));let c={indent_size:u,indent_char:o.insertSpaces?" ":" ",indent_empty_lines:Y(o,"indentEmptyLines",!1),wrap_line_length:Y(o,"wrapLineLength",120),unformatted:wt(o,"unformatted",void 0),content_unformatted:wt(o,"contentUnformatted",void 0),indent_inner_html:Y(o,"indentInnerHtml",!1),preserve_newlines:Y(o,"preserveNewLines",!0),max_preserve_newlines:Y(o,"maxPreserveNewLines",32786),indent_handlebars:Y(o,"indentHandlebars",!1),end_with_newline:e&&Y(o,"endWithNewline",!1),extra_liners:wt(o,"extraLiners",void 0),wrap_attributes:Y(o,"wrapAttributes","auto"),wrap_attributes_indent_size:Y(o,"wrapAttributesIndentSize",void 0),eol:`
|
|
48
|
+
`)===-1||(g.is_inline_element||g.is_unformatted||f.print_newline(!1),this._calcluate_parent_multiline(f,g))}else if(g.is_end_tag){var C=!1;C=g.start_tag_token&&g.start_tag_token.multiline_content,C=C||!g.is_inline_element&&!(R.is_inline_element||R.is_unformatted)&&!(v.type===l.TAG_CLOSE&&g.start_tag_token===R)&&v.type!=="TK_CONTENT",(g.is_content_unformatted||g.is_unformatted)&&(C=!1),C&&f.print_newline(!1)}else g.indent_content=!g.custom_beautifier_name,g.tag_start_char==="<"&&(g.tag_name==="html"?g.indent_content=this._options.indent_inner_html:g.tag_name==="head"?g.indent_content=this._options.indent_head_inner_html:g.tag_name==="body"&&(g.indent_content=this._options.indent_body_inner_html)),!(g.is_inline_element||g.is_unformatted)&&(v.type!=="TK_CONTENT"||g.is_content_unformatted)&&f.print_newline(!1),this._calcluate_parent_multiline(f,g)},L.prototype._calcluate_parent_multiline=function(f,d){d.parent&&f._output.just_added_newline()&&!((d.is_inline_element||d.is_unformatted)&&d.parent.is_inline_element)&&(d.parent.multiline_content=!0)};var N=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],F=["a","audio","del","ins","map","noscript","video"];L.prototype._do_optional_end_element=function(f){var d=null;if(!(f.is_empty_element||!f.is_start_tag||!f.parent)){if(f.tag_name==="body")d=d||this._tag_stack.try_pop("head");else if(f.tag_name==="li")d=d||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(f.tag_name==="dd"||f.tag_name==="dt")d=d||this._tag_stack.try_pop("dt",["dl"]),d=d||this._tag_stack.try_pop("dd",["dl"]);else if(f.parent.tag_name==="p"&&N.indexOf(f.tag_name)!==-1){var g=f.parent.parent;(!g||F.indexOf(g.tag_name)===-1)&&(d=d||this._tag_stack.try_pop("p"))}else f.tag_name==="rp"||f.tag_name==="rt"?(d=d||this._tag_stack.try_pop("rt",["ruby","rtc"]),d=d||this._tag_stack.try_pop("rp",["ruby","rtc"])):f.tag_name==="optgroup"?d=d||this._tag_stack.try_pop("optgroup",["select"]):f.tag_name==="option"?d=d||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):f.tag_name==="colgroup"?d=d||this._tag_stack.try_pop("caption",["table"]):f.tag_name==="thead"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"])):f.tag_name==="tbody"||f.tag_name==="tfoot"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"]),d=d||this._tag_stack.try_pop("thead",["table"]),d=d||this._tag_stack.try_pop("tbody",["table"])):f.tag_name==="tr"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"]),d=d||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(f.tag_name==="th"||f.tag_name==="td")&&(d=d||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),d=d||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return f.parent=this._tag_stack.get_parser_token(),d}},e.exports.Beautifier=L}),(function(e,r,u){var c=u(6).Options;function i(s){c.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new c,e.exports.Options=i}),(function(e,r,u){var c=u(9).Tokenizer,i=u(9).TOKEN,s=u(13).Directives,l=u(14).TemplatablePattern,h=u(12).Pattern,p={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},m=new s(/<\!--/,/-->/),A=function(b,D){c.call(this,b,D),this._current_tag_name="";var T=new l(this._input).read_options(this._options),y=new h(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),word_control_flow_close_excluded:T.until(/[\n\r\t <}]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var L=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(L).until_after(L)}};A.prototype=new c,A.prototype._is_comment=function(b){return!1},A.prototype._is_opening=function(b){return b.type===p.TAG_OPEN||b.type===p.CONTROL_FLOW_OPEN},A.prototype._is_closing=function(b,D){return b.type===p.TAG_CLOSE&&D&&((b.text===">"||b.text==="/>")&&D.text[0]==="<"||b.text==="}}"&&D.text[0]==="{"&&D.text[1]==="{")||b.type===p.CONTROL_FLOW_CLOSE&&b.text==="}"&&D.text.endsWith("{")},A.prototype._reset=function(){this._current_tag_name=""},A.prototype._get_next_token=function(b,D){var T=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(p.EOF,""):(T=T||this._read_open_handlebars(y,D),T=T||this._read_attribute(y,b,D),T=T||this._read_close(y,D),T=T||this._read_control_flows(y,D),T=T||this._read_raw_content(y,b,D),T=T||this._read_content_word(y,D),T=T||this._read_comment_or_cdata(y),T=T||this._read_processing(y),T=T||this._read_open(y,D),T=T||this._create_token(p.UNKNOWN,this._input.next()),T)},A.prototype._read_comment_or_cdata=function(b){var D=null,T=null,y=null;if(b==="<"){var L=this._input.peek(1);L==="!"&&(T=this.__patterns.comment.read(),T?(y=m.get_directives(T),y&&y.ignore==="start"&&(T+=m.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(D=this._create_token(p.COMMENT,T),D.directives=y)}return D},A.prototype._read_processing=function(b){var D=null,T=null,y=null;if(b==="<"){var L=this._input.peek(1);(L==="!"||L==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(D=this._create_token(p.COMMENT,T),D.directives=y)}return D},A.prototype._read_open=function(b,D){var T=null,y=null;return(!D||D.type===p.CONTROL_FLOW_OPEN)&&b==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),y=this._create_token(p.TAG_OPEN,T)),y},A.prototype._read_open_handlebars=function(b,D){var T=null,y=null;return(!D||D.type===p.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&b==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),y=this._create_token(p.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),y=this._create_token(p.TAG_OPEN,T))),y},A.prototype._read_control_flows=function(b,D){var T="",y=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return y;if(b==="@"){if(T=this.__patterns.angular_control_flow_start.read(),T==="")return y;for(var L=T.endsWith("(")?1:0,I=0;!(T.endsWith("{")&&L===I);){var N=this._input.next();if(N===null)break;N==="("?L++:N===")"&&I++,T+=N}y=this._create_token(p.CONTROL_FLOW_OPEN,T)}else b==="}"&&D&&D.type===p.CONTROL_FLOW_OPEN&&(T=this._input.next(),y=this._create_token(p.CONTROL_FLOW_CLOSE,T));return y},A.prototype._read_close=function(b,D){var T=null,y=null;return D&&D.type===p.TAG_OPEN&&(D.text[0]==="<"&&(b===">"||b==="/"&&this._input.peek(1)===">")?(T=this._input.next(),b==="/"&&(T+=this._input.next()),y=this._create_token(p.TAG_CLOSE,T)):D.text[0]==="{"&&b==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(p.TAG_CLOSE,"}}"))),y},A.prototype._read_attribute=function(b,D,T){var y=null,L="";if(T&&T.text[0]==="<")if(b==="=")y=this._create_token(p.EQUALS,this._input.next());else if(b==='"'||b==="'"){var I=this._input.next();b==='"'?I+=this.__patterns.double_quote.read():I+=this.__patterns.single_quote.read(),y=this._create_token(p.VALUE,I)}else L=this.__patterns.attribute.read(),L&&(D.type===p.EQUALS?y=this._create_token(p.VALUE,L):y=this._create_token(p.ATTRIBUTE,L));return y},A.prototype._is_content_unformatted=function(b){return this._options.void_elements.indexOf(b)===-1&&(this._options.content_unformatted.indexOf(b)!==-1||this._options.unformatted.indexOf(b)!==-1)},A.prototype._read_raw_content=function(b,D,T){var y="";if(T&&T.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(D.type===p.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var L=D.opened.text.substr(1).toLowerCase();if(L==="script"||L==="style"){var I=this._read_comment_or_cdata(b);if(I)return I.type=p.TEXT,I;y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(L)&&(y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(p.TEXT,y):null},A.prototype._read_content_word=function(b,D){var T="";if(this._options.unformatted_content_delimiter&&b===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=D&&D.type===p.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),T)return this._create_token(p.TEXT,T)},e.exports.Tokenizer=A,e.exports.TOKEN=p})],n={};function o(e){var r=n[e];if(r!==void 0)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}var a=o(18);gn=a})();function bn(t,n){return gn(t,n,pn,fn)}function vn(t,n,o){let a=t.getText(),e=!0,r=0,u=o.tabSize||4;if(n){let s=t.offsetAt(n.start),l=s;for(;l>0&&_n(a,l-1);)l--;l===0||wn(a,l-1)?s=l:l<s&&(s=l+1);let h=t.offsetAt(n.end),p=h;for(;p<a.length&&_n(a,p);)p++;(p===a.length||wn(a,p))&&(h=p),n=W.create(t.positionAt(s),t.positionAt(h));let m=a.substring(0,s);if(new RegExp(/.*[<][^>]*$/).test(m))return a=a.substring(s,h),[{range:n,newText:a}];if(e=h===a.length,a=a.substring(s,h),s!==0){let A=t.offsetAt(q.create(n.start.line,0));r=bi(t.getText(),A,o)}}else n=W.create(q.create(0,0),t.positionAt(a.length));let c={indent_size:u,indent_char:o.insertSpaces?" ":" ",indent_empty_lines:Y(o,"indentEmptyLines",!1),wrap_line_length:Y(o,"wrapLineLength",120),unformatted:wt(o,"unformatted",void 0),content_unformatted:wt(o,"contentUnformatted",void 0),indent_inner_html:Y(o,"indentInnerHtml",!1),preserve_newlines:Y(o,"preserveNewLines",!0),max_preserve_newlines:Y(o,"maxPreserveNewLines",32786),indent_handlebars:Y(o,"indentHandlebars",!1),end_with_newline:e&&Y(o,"endWithNewline",!1),extra_liners:wt(o,"extraLiners",void 0),wrap_attributes:Y(o,"wrapAttributes","auto"),wrap_attributes_indent_size:Y(o,"wrapAttributesIndentSize",void 0),eol:`
|
|
49
49
|
`,indent_scripts:Y(o,"indentScripts","normal"),templating:gi(o,"all"),unformatted_content_delimiter:Y(o,"unformattedContentDelimiter","")},i=bn(fi(a),c);if(r>0){let s=o.insertSpaces?bt(" ",u*r):bt(" ",r);i=i.split(`
|
|
50
50
|
`).join(`
|
|
51
51
|
`+s),n.start.character===0&&(i=s+i)}return[{range:n,newText:i}]}function fi(t){return t.replace(/^\s+/,"")}function Y(t,n,o){if(t&&t.hasOwnProperty(n)){let a=t[n];if(a!==null)return a}return o}function wt(t,n,o){let a=Y(t,n,null);return typeof a=="string"?a.length>0?a.split(",").map(e=>e.trim().toLowerCase()):[]:o}function gi(t,n){let o=Y(t,"templating",n);return o===!0?["auto"]:o===!1||o===n||Array.isArray(o)===!1?["none"]:o}function bi(t,n,o){let a=n,e=0,r=o.tabSize||4;for(;a<t.length;){let u=t.charAt(a);if(u===" ")e++;else if(u===" ")e+=r;else break;a++}return Math.floor(e/r)}function wn(t,n){return`\r
|
|
52
|
-
`.indexOf(t.charAt(n))!==-1}function _n(t,n){return" ".indexOf(t.charAt(n))!==-1}var yn;(()=>{"use strict";var t={470:e=>{function r(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function u(i,s){for(var l,h="",p=0,m=-1,A=0,b=0;b<=i.length;++b){if(b<i.length)l=i.charCodeAt(b);else{if(l===47)break;l=47}if(l===47){if(!(m===b-1||A===1))if(m!==b-1&&A===2){if(h.length<2||p!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var D=h.lastIndexOf("/");if(D!==h.length-1){D===-1?(h="",p=0):p=(h=h.slice(0,D)).length-1-h.lastIndexOf("/"),m=b,A=0;continue}}else if(h.length===2||h.length===1){h="",p=0,m=b,A=0;continue}}s&&(h.length>0?h+="/..":h="..",p=2)}else h.length>0?h+="/"+i.slice(m+1,b):h=i.slice(m+1,b),p=b-m-1;m=b,A=0}else l===46&&A!==-1?++A:A=-1}return h}var c={resolve:function(){for(var i,s="",l=!1,h=arguments.length-1;h>=-1&&!l;h--){var p;h>=0?p=arguments[h]:(i===void 0&&(i=process.cwd()),p=i),r(p),p.length!==0&&(s=p+"/"+s,l=p.charCodeAt(0)===47)}return s=u(s,!l),l?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(i){if(r(i),i.length===0)return".";var s=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return(i=u(i,!s)).length!==0||s||(i="."),i.length>0&&l&&(i+="/"),s?"/"+i:i},isAbsolute:function(i){return r(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,s=0;s<arguments.length;++s){var l=arguments[s];r(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":c.normalize(i)},relative:function(i,s){if(r(i),r(s),i===s||(i=c.resolve(i))===(s=c.resolve(s)))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var h=i.length,p=h-l,m=1;m<s.length&&s.charCodeAt(m)===47;++m);for(var A=s.length-m,b=p<A?p:A,D=-1,T=0;T<=b;++T){if(T===b){if(A>b){if(s.charCodeAt(m+T)===47)return s.slice(m+T+1);if(T===0)return s.slice(m+T)}else p>b&&(i.charCodeAt(l+T)===47?D=T:T===0&&(D=0));break}var y=i.charCodeAt(l+T);if(y!==s.charCodeAt(m+T))break;y===47&&(D=T)}var L="";for(T=l+D+1;T<=h;++T)T!==h&&i.charCodeAt(T)!==47||(L.length===0?L+="..":L+="/..");return L.length>0?L+s.slice(m+D):(m+=D,s.charCodeAt(m)===47&&++m,s.slice(m))},_makeLong:function(i){return i},dirname:function(i){if(r(i),i.length===0)return".";for(var s=i.charCodeAt(0),l=s===47,h=-1,p=!0,m=i.length-1;m>=1;--m)if((s=i.charCodeAt(m))===47){if(!p){h=m;break}}else p=!1;return h===-1?l?"/":".":l&&h===1?"//":i.slice(0,h)},basename:function(i,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');r(i);var l,h=0,p=-1,m=!0;if(s!==void 0&&s.length>0&&s.length<=i.length){if(s.length===i.length&&s===i)return"";var A=s.length-1,b=-1;for(l=i.length-1;l>=0;--l){var D=i.charCodeAt(l);if(D===47){if(!m){h=l+1;break}}else b===-1&&(m=!1,b=l+1),A>=0&&(D===s.charCodeAt(A)?--A==-1&&(p=l):(A=-1,p=b))}return h===p?p=b:p===-1&&(p=i.length),i.slice(h,p)}for(l=i.length-1;l>=0;--l)if(i.charCodeAt(l)===47){if(!m){h=l+1;break}}else p===-1&&(m=!1,p=l+1);return p===-1?"":i.slice(h,p)},extname:function(i){r(i);for(var s=-1,l=0,h=-1,p=!0,m=0,A=i.length-1;A>=0;--A){var b=i.charCodeAt(A);if(b!==47)h===-1&&(p=!1,h=A+1),b===46?s===-1?s=A:m!==1&&(m=1):s!==-1&&(m=-1);else if(!p){l=A+1;break}}return s===-1||h===-1||m===0||m===1&&s===h-1&&s===l+1?"":i.slice(s,h)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return function(s,l){var h=l.dir||l.root,p=l.base||(l.name||"")+(l.ext||"");return h?h===l.root?h+p:h+"/"+p:p}(0,i)},parse:function(i){r(i);var s={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return s;var l,h=i.charCodeAt(0),p=h===47;p?(s.root="/",l=1):l=0;for(var m=-1,A=0,b=-1,D=!0,T=i.length-1,y=0;T>=l;--T)if((h=i.charCodeAt(T))!==47)b===-1&&(D=!1,b=T+1),h===46?m===-1?m=T:y!==1&&(y=1):m!==-1&&(y=-1);else if(!D){A=T+1;break}return m===-1||b===-1||y===0||y===1&&m===b-1&&m===A+1?b!==-1&&(s.base=s.name=A===0&&p?i.slice(1,b):i.slice(A,b)):(A===0&&p?(s.name=i.slice(1,m),s.base=i.slice(1,b)):(s.name=i.slice(A,m),s.base=i.slice(A,b)),s.ext=i.slice(m,b)),A>0?s.dir=i.slice(0,A-1):p&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};c.posix=c,e.exports=c}},n={};function o(e){var r=n[e];if(r!==void 0)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}o.d=(e,r)=>{for(var u in r)o.o(r,u)&&!o.o(e,u)&&Object.defineProperty(e,u,{enumerable:!0,get:r[u]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{let e;o.r(a),o.d(a,{URI:()=>p,Utils:()=>R}),typeof process=="object"?e=process.platform==="win32":typeof navigator=="object"&&(e=navigator.userAgent.indexOf("Windows")>=0);let r=/^\w[\w\d+.-]*$/,u=/^\//,c=/^\/\//;function i(v,_){if(!v.scheme&&_)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!r.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!u.test(v.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let s="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static isUri(_){return _ instanceof p||!!_&&typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function"}scheme;authority;path;query;fragment;constructor(_,C,E,k,x,M=!1){typeof _=="object"?(this.scheme=_.scheme||s,this.authority=_.authority||s,this.path=_.path||s,this.query=_.query||s,this.fragment=_.fragment||s):(this.scheme=function(B,O){return B||O?B:"file"}(_,M),this.authority=C||s,this.path=function(B,O){switch(B){case"https":case"http":case"file":O?O[0]!==l&&(O=l+O):O=l}return O}(this.scheme,E||s),this.query=k||s,this.fragment=x||s,i(this,M))}get fsPath(){return y(this,!1)}with(_){if(!_)return this;let{scheme:C,authority:E,path:k,query:x,fragment:M}=_;return C===void 0?C=this.scheme:C===null&&(C=s),E===void 0?E=this.authority:E===null&&(E=s),k===void 0?k=this.path:k===null&&(k=s),x===void 0?x=this.query:x===null&&(x=s),M===void 0?M=this.fragment:M===null&&(M=s),C===this.scheme&&E===this.authority&&k===this.path&&x===this.query&&M===this.fragment?this:new A(C,E,k,x,M)}static parse(_,C=!1){let E=h.exec(_);return E?new A(E[2]||s,F(E[4]||s),F(E[5]||s),F(E[7]||s),F(E[9]||s),C):new A(s,s,s,s,s)}static file(_){let C=s;if(e&&(_=_.replace(/\\/g,l)),_[0]===l&&_[1]===l){let E=_.indexOf(l,2);E===-1?(C=_.substring(2),_=l):(C=_.substring(2,E),_=_.substring(E)||l)}return new A("file",C,_,s,s)}static from(_){let C=new A(_.scheme,_.authority,_.path,_.query,_.fragment);return i(C,!0),C}toString(_=!1){return L(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof p)return _;{let C=new A(_);return C._formatted=_.external,C._fsPath=_._sep===m?_.fsPath:null,C}}return _}}let m=e?1:void 0;class A extends p{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(_=!1){return _?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){let _={$mid:1};return this._fsPath&&(_.fsPath=this._fsPath,_._sep=m),this._formatted&&(_.external=this._formatted),this.path&&(_.path=this.path),this.scheme&&(_.scheme=this.scheme),this.authority&&(_.authority=this.authority),this.query&&(_.query=this.query),this.fragment&&(_.fragment=this.fragment),_}}let b={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function D(v,_,C){let E,k=-1;for(let x=0;x<v.length;x++){let M=v.charCodeAt(x);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||_&&M===47||C&&M===91||C&&M===93||C&&M===58)k!==-1&&(E+=encodeURIComponent(v.substring(k,x)),k=-1),E!==void 0&&(E+=v.charAt(x));else{E===void 0&&(E=v.substr(0,x));let B=b[M];B!==void 0?(k!==-1&&(E+=encodeURIComponent(v.substring(k,x)),k=-1),E+=B):k===-1&&(k=x)}}return k!==-1&&(E+=encodeURIComponent(v.substring(k))),E!==void 0?E:v}function T(v){let _;for(let C=0;C<v.length;C++){let E=v.charCodeAt(C);E===35||E===63?(_===void 0&&(_=v.substr(0,C)),_+=b[E]):_!==void 0&&(_+=v[C])}return _!==void 0?_:v}function y(v,_){let C;return C=v.authority&&v.path.length>1&&v.scheme==="file"?`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?_?v.path.substr(1):v.path[1].toLowerCase()+v.path.substr(2):v.path,e&&(C=C.replace(/\//g,"\\")),C}function L(v,_){let C=_?T:D,E="",{scheme:k,authority:x,path:M,query:B,fragment:O}=v;if(k&&(E+=k,E+=":"),(x||k==="file")&&(E+=l,E+=l),x){let z=x.indexOf("@");if(z!==-1){let U=x.substr(0,z);x=x.substr(z+1),z=U.lastIndexOf(":"),z===-1?E+=C(U,!1,!1):(E+=C(U.substr(0,z),!1,!1),E+=":",E+=C(U.substr(z+1),!1,!0)),E+="@"}x=x.toLowerCase(),z=x.lastIndexOf(":"),z===-1?E+=C(x,!1,!0):(E+=C(x.substr(0,z),!1,!0),E+=x.substr(z))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){let z=M.charCodeAt(1);z>=65&&z<=90&&(M=`/${String.fromCharCode(z+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){let z=M.charCodeAt(0);z>=65&&z<=90&&(M=`${String.fromCharCode(z+32)}:${M.substr(2)}`)}E+=C(M,!0,!1)}return B&&(E+="?",E+=C(B,!1,!1)),O&&(E+="#",E+=_?O:D(O,!1,!1)),E}function I(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+I(v.substr(3)):v}}let N=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function F(v){return v.match(N)?v.replace(N,_=>I(_)):v}var f=o(470);let d=f.posix||f,g="/";var R;(function(v){v.joinPath=function(_,...C){return _.with({path:d.join(_.path,...C)})},v.resolvePath=function(_,...C){let E=_.path,k=!1;E[0]!==g&&(E=g+E,k=!0);let x=d.resolve(E,...C);return k&&x[0]===g&&!_.authority&&(x=x.substring(1)),_.with({path:x})},v.dirname=function(_){if(_.path.length===0||_.path===g)return _;let C=d.dirname(_.path);return C.length===1&&C.charCodeAt(0)===46&&(C=""),_.with({path:C})},v.basename=function(_){return d.basename(_.path)},v.extname=function(_){return d.extname(_.path)}})(R||(R={}))})(),yn=a})();var{URI:Tn,Utils:vr}=yn;function _t(t){let n=t[0],o=t[t.length-1];return n===o&&(n==="'"||n==='"')&&(t=t.substring(1,t.length-1)),t}function wi(t,n){return!t.length||n==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function _i(t,n,o,a){if(/^\s*javascript\:/i.test(n)||/[\n\r]/.test(n))return;n=n.replace(/^\s*/g,"");let e=n.match(/^(\w[\w\d+.-]*):/);if(e){let r=e[1].toLowerCase();return r==="http"||r==="https"||r==="file"?n:void 0}return/^\#/i.test(n)?t+n:/^\/\//i.test(n)?(Z(t,"https://")?"https":"http")+":"+n.replace(/^\s*/g,""):o?o.resolveReference(n,a||t):n}function vi(t,n,o,a,e,r){let u=_t(o);if(!wi(u,t.languageId))return;u.length<o.length&&(a++,e--);let c=_i(t.uri,u,n,r);if(!c)return;let i=Ti(c,t);return{range:W.create(t.positionAt(a),t.positionAt(e)),target:i}}var yi=35;function Ti(t,n){try{let o=Tn.parse(t);return o.scheme==="file"&&o.query&&(o=o.with({query:null}),t=o.toString(!0)),o.scheme==="file"&&o.fragment&&!(t.startsWith(n.uri)&&t.charCodeAt(n.uri.length)===yi)?o.with({fragment:null}).toString(!0):t}catch{return}}var We=class{constructor(n){this.dataManager=n}findDocumentLinks(n,o){let a=[],e=V(n.getText(),0),r=e.scan(),u,c,i=!1,s,l={};for(;r!==S.EOS;){switch(r){case S.StartTag:c=e.getTokenText().toLowerCase(),s||(i=c==="base");break;case S.AttributeName:u=e.getTokenText().toLowerCase();break;case S.AttributeValue:if(c&&u&&this.dataManager.isPathAttribute(c,u)){let h=e.getTokenText();if(!i){let p=vi(n,o,h,e.getTokenOffset(),e.getTokenEnd(),s);p&&a.push(p)}i&&typeof s>"u"&&(s=_t(h),s&&o&&(s=o.resolveReference(s,n.uri))),i=!1,u=void 0}else if(u==="id"){let h=_t(e.getTokenText());l[h]=e.getTokenOffset()}break}r=e.scan()}for(let h of a){let p=n.uri+"#";if(h.target&&Z(h.target,p)){let m=h.target.substring(p.length),A=l[m];if(A!==void 0){let b=n.positionAt(A);h.target=`${p}${b.line+1},${b.character+1}`}else h.target=n.uri}}return a}};function xn(t,n,o){let a=t.offsetAt(n),e=o.findNodeAt(a);if(!e.tag)return[];let r=[],u=An(S.StartTag,t,e.start),c=typeof e.endTagStart=="number"&&An(S.EndTag,t,e.endTagStart);return(u&&Sn(u,n)||c&&Sn(c,n))&&(u&&r.push({kind:ue.Read,range:u}),c&&r.push({kind:ue.Read,range:c})),r}function kn(t,n){return t.line<n.line||t.line===n.line&&t.character<=n.character}function Sn(t,n){return kn(t.start,n)&&kn(n,t.end)}function An(t,n,o){let a=V(n.getText(),o),e=a.scan();for(;e!==S.EOS&&e!==t;)e=a.scan();return e!==S.EOS?{start:n.positionAt(a.getTokenOffset()),end:n.positionAt(a.getTokenEnd())}:null}function Dn(t,n){let o=[],a=vt(t,n);for(let r of a)e(r,void 0);return o;function e(r,u){let c=we.create(r.name,r.kind,r.range,t.uri,u?.name);if(c.containerName??(c.containerName=""),o.push(c),r.children)for(let i of r.children)e(i,r)}}function vt(t,n){let o=[];return n.roots.forEach(a=>{En(t,a,o)}),o}function En(t,n,o){let a=ki(n),e=W.create(t.positionAt(n.start),t.positionAt(n.end)),r=_e.create(a,void 0,be.Field,e,e);o.push(r),n.children.forEach(u=>{r.children??(r.children=[]),En(t,u,r.children)})}function ki(t){let n=t.tag;if(t.attributes){let o=t.attributes.id,a=t.attributes.class;o&&(n+=`#${o.replace(/[\"\']/g,"")}`),a&&(n+=a.replace(/[\"\']/g,"").split(/\s+/).map(e=>`.${e}`).join(""))}return n||"?"}function Cn(t,n,o,a){let e=t.offsetAt(n),r=a.findNodeAt(e);if(!r.tag||!Si(r,e,r.tag))return null;let u=[],c={start:t.positionAt(r.start+1),end:t.positionAt(r.start+1+r.tag.length)};if(u.push({range:c,newText:o}),r.endTagStart){let s={start:t.positionAt(r.endTagStart+2),end:t.positionAt(r.endTagStart+2+r.tag.length)};u.push({range:s,newText:o})}return{changes:{[t.uri.toString()]:u}}}function Si(t,n,o){return t.endTagStart&&t.endTagStart+2<=n&&n<=t.endTagStart+2+o.length?!0:t.start+1<=n&&n<=t.start+1+o.length}function Ln(t,n,o){let a=t.offsetAt(n),e=o.findNodeAt(a);if(!e.tag||!e.endTagStart)return null;if(e.start+1<=a&&a<=e.start+1+e.tag.length){let r=a-1-e.start+e.endTagStart+2;return t.positionAt(r)}if(e.endTagStart+2<=a&&a<=e.endTagStart+2+e.tag.length){let r=a-2-e.endTagStart+e.start+1;return t.positionAt(r)}return null}function yt(t,n,o){let a=t.offsetAt(n),e=o.findNodeAt(a),r=e.tag?e.tag.length:0;return e.endTagStart&&(e.start+1<=a&&a<=e.start+1+r||e.endTagStart+2<=a&&a<=e.endTagStart+2+r)?[W.create(t.positionAt(e.start+1),t.positionAt(e.start+1+r)),W.create(t.positionAt(e.endTagStart+2),t.positionAt(e.endTagStart+2+r))]:null}var Ue=class{constructor(n){this.dataManager=n}limitRanges(n,o){n=n.sort((h,p)=>{let m=h.startLine-p.startLine;return m===0&&(m=h.endLine-p.endLine),m});let a,e=[],r=[],u=[],c=(h,p)=>{r[h]=p,p<30&&(u[p]=(u[p]||0)+1)};for(let h=0;h<n.length;h++){let p=n[h];if(!a)a=p,c(h,0);else if(p.startLine>a.startLine){if(p.endLine<=a.endLine)e.push(a),a=p,c(h,e.length);else if(p.startLine>a.endLine){do a=e.pop();while(a&&p.startLine>a.endLine);a&&e.push(a),a=p,c(h,e.length)}}}let i=0,s=0;for(let h=0;h<u.length;h++){let p=u[h];if(p){if(p+i>o){s=h;break}i+=p}}let l=[];for(let h=0;h<n.length;h++){let p=r[h];typeof p=="number"&&(p<s||p===s&&i++<o)&&l.push(n[h])}return l}getFoldingRanges(n,o){let a=this.dataManager.getVoidElements(n.languageId),e=V(n.getText()),r=e.scan(),u=[],c=[],i=null,s=-1;function l(p){u.push(p),s=p.startLine}for(;r!==S.EOS;){switch(r){case S.StartTag:{let p=e.getTokenText(),m=n.positionAt(e.getTokenOffset()).line;c.push({startLine:m,tagName:p}),i=p;break}case S.EndTag:{i=e.getTokenText();break}case S.StartTagClose:if(!i||!this.dataManager.isVoidElement(i,a))break;case S.EndTagClose:case S.StartTagSelfClose:{let p=c.length-1;for(;p>=0&&c[p].tagName!==i;)p--;if(p>=0){let m=c[p];c.length=p;let A=n.positionAt(e.getTokenOffset()).line,b=m.startLine,D=A-1;D>b&&s!==b&&l({startLine:b,endLine:D})}break}case S.Comment:{let p=n.positionAt(e.getTokenOffset()).line,A=e.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(A)if(A[1])c.push({startLine:p,tagName:""});else{let b=c.length-1;for(;b>=0&&c[b].tagName.length;)b--;if(b>=0){let D=c[b];c.length=b;let T=p;p=D.startLine,T>p&&s!==p&&l({startLine:p,endLine:T,kind:oe.Region})}}else{let b=n.positionAt(e.getTokenOffset()+e.getTokenLength()).line;p<b&&l({startLine:p,endLine:b,kind:oe.Comment})}break}}r=e.scan()}let h=o&&o.rangeLimit||Number.MAX_VALUE;return u.length>h?this.limitRanges(u,h):u}};var Oe=class{constructor(n){this.htmlParser=n}getSelectionRanges(n,o){let a=this.htmlParser.parseDocument(n);return o.map(e=>this.getSelectionRange(e,n,a))}getSelectionRange(n,o,a){let e=this.getApplicableRanges(o,n,a),r,u;for(let c=e.length-1;c>=0;c--){let i=e[c];(!r||i[0]!==r[0]||i[1]!==r[1])&&(u=ce.create(W.create(o.positionAt(e[c][0]),o.positionAt(e[c][1])),u)),r=i}return u||(u=ce.create(W.create(n,n))),u}getApplicableRanges(n,o,a){let e=n.offsetAt(o),r=a.findNodeAt(e),u=this.getAllParentTagRanges(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];let c=W.create(n.positionAt(r.startTagEnd-2),n.positionAt(r.startTagEnd));return n.getText(c)==="/>"?u.unshift([r.start+1,r.startTagEnd-2]):u.unshift([r.start+1,r.startTagEnd-1]),u=this.getAttributeLevelRanges(n,r,e).concat(u),u}return!r.startTagEnd||!r.endTagStart?u:(u.unshift([r.start,r.end]),r.start<e&&e<r.startTagEnd?(u.unshift([r.start+1,r.startTagEnd-1]),u=this.getAttributeLevelRanges(n,r,e).concat(u),u):r.startTagEnd<=e&&e<=r.endTagStart?(u.unshift([r.startTagEnd,r.endTagStart]),u):(e>=r.endTagStart+2&&u.unshift([r.endTagStart+2,r.end-1]),u))}getAllParentTagRanges(n){let o=n,a=[];for(;o.parent;)o=o.parent,this.getNodeRanges(o).forEach(e=>a.push(e));return a}getNodeRanges(n){return n.startTagEnd&&n.endTagStart&&n.startTagEnd<n.endTagStart?[[n.startTagEnd,n.endTagStart],[n.start,n.end]]:[[n.start,n.end]]}getAttributeLevelRanges(n,o,a){let e=W.create(n.positionAt(o.start),n.positionAt(o.end)),r=n.getText(e),u=a-o.start,c=V(r),i=c.scan(),s=o.start,l=[],h=!1,p=-1;for(;i!==S.EOS;){switch(i){case S.AttributeName:{if(u<c.getTokenOffset()){h=!1;break}u<=c.getTokenEnd()&&l.unshift([c.getTokenOffset(),c.getTokenEnd()]),h=!0,p=c.getTokenOffset();break}case S.AttributeValue:{if(!h)break;let m=c.getTokenText();if(u<c.getTokenOffset()){l.push([p,c.getTokenEnd()]);break}u>=c.getTokenOffset()&&u<=c.getTokenEnd()&&(l.unshift([c.getTokenOffset(),c.getTokenEnd()]),(m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'")&&u>=c.getTokenOffset()+1&&u<=c.getTokenEnd()-1&&l.unshift([c.getTokenOffset()+1,c.getTokenEnd()-1]),l.push([p,c.getTokenEnd()]));break}}i=c.scan()}return l.map(m=>[m[0]+s,m[1]+s])}};var Tt={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
|
|
52
|
+
`.indexOf(t.charAt(n))!==-1}function _n(t,n){return" ".indexOf(t.charAt(n))!==-1}var yn;(()=>{"use strict";var t={470:e=>{function r(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function u(i,s){for(var l,h="",p=0,m=-1,A=0,b=0;b<=i.length;++b){if(b<i.length)l=i.charCodeAt(b);else{if(l===47)break;l=47}if(l===47){if(!(m===b-1||A===1))if(m!==b-1&&A===2){if(h.length<2||p!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var D=h.lastIndexOf("/");if(D!==h.length-1){D===-1?(h="",p=0):p=(h=h.slice(0,D)).length-1-h.lastIndexOf("/"),m=b,A=0;continue}}else if(h.length===2||h.length===1){h="",p=0,m=b,A=0;continue}}s&&(h.length>0?h+="/..":h="..",p=2)}else h.length>0?h+="/"+i.slice(m+1,b):h=i.slice(m+1,b),p=b-m-1;m=b,A=0}else l===46&&A!==-1?++A:A=-1}return h}var c={resolve:function(){for(var i,s="",l=!1,h=arguments.length-1;h>=-1&&!l;h--){var p;h>=0?p=arguments[h]:(i===void 0&&(i=process.cwd()),p=i),r(p),p.length!==0&&(s=p+"/"+s,l=p.charCodeAt(0)===47)}return s=u(s,!l),l?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(i){if(r(i),i.length===0)return".";var s=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return(i=u(i,!s)).length!==0||s||(i="."),i.length>0&&l&&(i+="/"),s?"/"+i:i},isAbsolute:function(i){return r(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,s=0;s<arguments.length;++s){var l=arguments[s];r(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":c.normalize(i)},relative:function(i,s){if(r(i),r(s),i===s||(i=c.resolve(i))===(s=c.resolve(s)))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var h=i.length,p=h-l,m=1;m<s.length&&s.charCodeAt(m)===47;++m);for(var A=s.length-m,b=p<A?p:A,D=-1,T=0;T<=b;++T){if(T===b){if(A>b){if(s.charCodeAt(m+T)===47)return s.slice(m+T+1);if(T===0)return s.slice(m+T)}else p>b&&(i.charCodeAt(l+T)===47?D=T:T===0&&(D=0));break}var y=i.charCodeAt(l+T);if(y!==s.charCodeAt(m+T))break;y===47&&(D=T)}var L="";for(T=l+D+1;T<=h;++T)T!==h&&i.charCodeAt(T)!==47||(L.length===0?L+="..":L+="/..");return L.length>0?L+s.slice(m+D):(m+=D,s.charCodeAt(m)===47&&++m,s.slice(m))},_makeLong:function(i){return i},dirname:function(i){if(r(i),i.length===0)return".";for(var s=i.charCodeAt(0),l=s===47,h=-1,p=!0,m=i.length-1;m>=1;--m)if((s=i.charCodeAt(m))===47){if(!p){h=m;break}}else p=!1;return h===-1?l?"/":".":l&&h===1?"//":i.slice(0,h)},basename:function(i,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');r(i);var l,h=0,p=-1,m=!0;if(s!==void 0&&s.length>0&&s.length<=i.length){if(s.length===i.length&&s===i)return"";var A=s.length-1,b=-1;for(l=i.length-1;l>=0;--l){var D=i.charCodeAt(l);if(D===47){if(!m){h=l+1;break}}else b===-1&&(m=!1,b=l+1),A>=0&&(D===s.charCodeAt(A)?--A==-1&&(p=l):(A=-1,p=b))}return h===p?p=b:p===-1&&(p=i.length),i.slice(h,p)}for(l=i.length-1;l>=0;--l)if(i.charCodeAt(l)===47){if(!m){h=l+1;break}}else p===-1&&(m=!1,p=l+1);return p===-1?"":i.slice(h,p)},extname:function(i){r(i);for(var s=-1,l=0,h=-1,p=!0,m=0,A=i.length-1;A>=0;--A){var b=i.charCodeAt(A);if(b!==47)h===-1&&(p=!1,h=A+1),b===46?s===-1?s=A:m!==1&&(m=1):s!==-1&&(m=-1);else if(!p){l=A+1;break}}return s===-1||h===-1||m===0||m===1&&s===h-1&&s===l+1?"":i.slice(s,h)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return(function(s,l){var h=l.dir||l.root,p=l.base||(l.name||"")+(l.ext||"");return h?h===l.root?h+p:h+"/"+p:p})(0,i)},parse:function(i){r(i);var s={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return s;var l,h=i.charCodeAt(0),p=h===47;p?(s.root="/",l=1):l=0;for(var m=-1,A=0,b=-1,D=!0,T=i.length-1,y=0;T>=l;--T)if((h=i.charCodeAt(T))!==47)b===-1&&(D=!1,b=T+1),h===46?m===-1?m=T:y!==1&&(y=1):m!==-1&&(y=-1);else if(!D){A=T+1;break}return m===-1||b===-1||y===0||y===1&&m===b-1&&m===A+1?b!==-1&&(s.base=s.name=A===0&&p?i.slice(1,b):i.slice(A,b)):(A===0&&p?(s.name=i.slice(1,m),s.base=i.slice(1,b)):(s.name=i.slice(A,m),s.base=i.slice(A,b)),s.ext=i.slice(m,b)),A>0?s.dir=i.slice(0,A-1):p&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};c.posix=c,e.exports=c}},n={};function o(e){var r=n[e];if(r!==void 0)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}o.d=(e,r)=>{for(var u in r)o.o(r,u)&&!o.o(e,u)&&Object.defineProperty(e,u,{enumerable:!0,get:r[u]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{let e;o.r(a),o.d(a,{URI:()=>p,Utils:()=>R}),typeof process=="object"?e=process.platform==="win32":typeof navigator=="object"&&(e=navigator.userAgent.indexOf("Windows")>=0);let r=/^\w[\w\d+.-]*$/,u=/^\//,c=/^\/\//;function i(v,_){if(!v.scheme&&_)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!r.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!u.test(v.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let s="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static isUri(_){return _ instanceof p||!!_&&typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function"}scheme;authority;path;query;fragment;constructor(_,C,E,k,x,M=!1){typeof _=="object"?(this.scheme=_.scheme||s,this.authority=_.authority||s,this.path=_.path||s,this.query=_.query||s,this.fragment=_.fragment||s):(this.scheme=(function(B,O){return B||O?B:"file"})(_,M),this.authority=C||s,this.path=(function(B,O){switch(B){case"https":case"http":case"file":O?O[0]!==l&&(O=l+O):O=l}return O})(this.scheme,E||s),this.query=k||s,this.fragment=x||s,i(this,M))}get fsPath(){return y(this,!1)}with(_){if(!_)return this;let{scheme:C,authority:E,path:k,query:x,fragment:M}=_;return C===void 0?C=this.scheme:C===null&&(C=s),E===void 0?E=this.authority:E===null&&(E=s),k===void 0?k=this.path:k===null&&(k=s),x===void 0?x=this.query:x===null&&(x=s),M===void 0?M=this.fragment:M===null&&(M=s),C===this.scheme&&E===this.authority&&k===this.path&&x===this.query&&M===this.fragment?this:new A(C,E,k,x,M)}static parse(_,C=!1){let E=h.exec(_);return E?new A(E[2]||s,F(E[4]||s),F(E[5]||s),F(E[7]||s),F(E[9]||s),C):new A(s,s,s,s,s)}static file(_){let C=s;if(e&&(_=_.replace(/\\/g,l)),_[0]===l&&_[1]===l){let E=_.indexOf(l,2);E===-1?(C=_.substring(2),_=l):(C=_.substring(2,E),_=_.substring(E)||l)}return new A("file",C,_,s,s)}static from(_){let C=new A(_.scheme,_.authority,_.path,_.query,_.fragment);return i(C,!0),C}toString(_=!1){return L(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof p)return _;{let C=new A(_);return C._formatted=_.external,C._fsPath=_._sep===m?_.fsPath:null,C}}return _}}let m=e?1:void 0;class A extends p{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(_=!1){return _?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){let _={$mid:1};return this._fsPath&&(_.fsPath=this._fsPath,_._sep=m),this._formatted&&(_.external=this._formatted),this.path&&(_.path=this.path),this.scheme&&(_.scheme=this.scheme),this.authority&&(_.authority=this.authority),this.query&&(_.query=this.query),this.fragment&&(_.fragment=this.fragment),_}}let b={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function D(v,_,C){let E,k=-1;for(let x=0;x<v.length;x++){let M=v.charCodeAt(x);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||_&&M===47||C&&M===91||C&&M===93||C&&M===58)k!==-1&&(E+=encodeURIComponent(v.substring(k,x)),k=-1),E!==void 0&&(E+=v.charAt(x));else{E===void 0&&(E=v.substr(0,x));let B=b[M];B!==void 0?(k!==-1&&(E+=encodeURIComponent(v.substring(k,x)),k=-1),E+=B):k===-1&&(k=x)}}return k!==-1&&(E+=encodeURIComponent(v.substring(k))),E!==void 0?E:v}function T(v){let _;for(let C=0;C<v.length;C++){let E=v.charCodeAt(C);E===35||E===63?(_===void 0&&(_=v.substr(0,C)),_+=b[E]):_!==void 0&&(_+=v[C])}return _!==void 0?_:v}function y(v,_){let C;return C=v.authority&&v.path.length>1&&v.scheme==="file"?`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?_?v.path.substr(1):v.path[1].toLowerCase()+v.path.substr(2):v.path,e&&(C=C.replace(/\//g,"\\")),C}function L(v,_){let C=_?T:D,E="",{scheme:k,authority:x,path:M,query:B,fragment:O}=v;if(k&&(E+=k,E+=":"),(x||k==="file")&&(E+=l,E+=l),x){let z=x.indexOf("@");if(z!==-1){let U=x.substr(0,z);x=x.substr(z+1),z=U.lastIndexOf(":"),z===-1?E+=C(U,!1,!1):(E+=C(U.substr(0,z),!1,!1),E+=":",E+=C(U.substr(z+1),!1,!0)),E+="@"}x=x.toLowerCase(),z=x.lastIndexOf(":"),z===-1?E+=C(x,!1,!0):(E+=C(x.substr(0,z),!1,!0),E+=x.substr(z))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){let z=M.charCodeAt(1);z>=65&&z<=90&&(M=`/${String.fromCharCode(z+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){let z=M.charCodeAt(0);z>=65&&z<=90&&(M=`${String.fromCharCode(z+32)}:${M.substr(2)}`)}E+=C(M,!0,!1)}return B&&(E+="?",E+=C(B,!1,!1)),O&&(E+="#",E+=_?O:D(O,!1,!1)),E}function I(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+I(v.substr(3)):v}}let N=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function F(v){return v.match(N)?v.replace(N,(_=>I(_))):v}var f=o(470);let d=f.posix||f,g="/";var R;(function(v){v.joinPath=function(_,...C){return _.with({path:d.join(_.path,...C)})},v.resolvePath=function(_,...C){let E=_.path,k=!1;E[0]!==g&&(E=g+E,k=!0);let x=d.resolve(E,...C);return k&&x[0]===g&&!_.authority&&(x=x.substring(1)),_.with({path:x})},v.dirname=function(_){if(_.path.length===0||_.path===g)return _;let C=d.dirname(_.path);return C.length===1&&C.charCodeAt(0)===46&&(C=""),_.with({path:C})},v.basename=function(_){return d.basename(_.path)},v.extname=function(_){return d.extname(_.path)}})(R||(R={}))})(),yn=a})();var{URI:Tn,Utils:vr}=yn;function _t(t){let n=t[0],o=t[t.length-1];return n===o&&(n==="'"||n==='"')&&(t=t.substring(1,t.length-1)),t}function wi(t,n){return!t.length||n==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function _i(t,n,o,a){if(/^\s*javascript\:/i.test(n)||/[\n\r]/.test(n))return;n=n.replace(/^\s*/g,"");let e=n.match(/^(\w[\w\d+.-]*):/);if(e){let r=e[1].toLowerCase();return r==="http"||r==="https"||r==="file"?n:void 0}return/^\#/i.test(n)?t+n:/^\/\//i.test(n)?(Z(t,"https://")?"https":"http")+":"+n.replace(/^\s*/g,""):o?o.resolveReference(n,a||t):n}function vi(t,n,o,a,e,r){let u=_t(o);if(!wi(u,t.languageId))return;u.length<o.length&&(a++,e--);let c=_i(t.uri,u,n,r);if(!c)return;let i=Ti(c,t);return{range:W.create(t.positionAt(a),t.positionAt(e)),target:i}}var yi=35;function Ti(t,n){try{let o=Tn.parse(t);return o.scheme==="file"&&o.query&&(o=o.with({query:null}),t=o.toString(!0)),o.scheme==="file"&&o.fragment&&!(t.startsWith(n.uri)&&t.charCodeAt(n.uri.length)===yi)?o.with({fragment:null}).toString(!0):t}catch{return}}var We=class{constructor(n){this.dataManager=n}findDocumentLinks(n,o){let a=[],e=V(n.getText(),0),r=e.scan(),u,c,i=!1,s,l={};for(;r!==S.EOS;){switch(r){case S.StartTag:c=e.getTokenText().toLowerCase(),s||(i=c==="base");break;case S.AttributeName:u=e.getTokenText().toLowerCase();break;case S.AttributeValue:if(c&&u&&this.dataManager.isPathAttribute(c,u)){let h=e.getTokenText();if(!i){let p=vi(n,o,h,e.getTokenOffset(),e.getTokenEnd(),s);p&&a.push(p)}i&&typeof s>"u"&&(s=_t(h),s&&o&&(s=o.resolveReference(s,n.uri))),i=!1,u=void 0}else if(u==="id"){let h=_t(e.getTokenText());l[h]=e.getTokenOffset()}break}r=e.scan()}for(let h of a){let p=n.uri+"#";if(h.target&&Z(h.target,p)){let m=h.target.substring(p.length),A=l[m];if(A!==void 0){let b=n.positionAt(A);h.target=`${p}${b.line+1},${b.character+1}`}else h.target=n.uri}}return a}};function xn(t,n,o){let a=t.offsetAt(n),e=o.findNodeAt(a);if(!e.tag)return[];let r=[],u=An(S.StartTag,t,e.start),c=typeof e.endTagStart=="number"&&An(S.EndTag,t,e.endTagStart);return(u&&Sn(u,n)||c&&Sn(c,n))&&(u&&r.push({kind:ue.Read,range:u}),c&&r.push({kind:ue.Read,range:c})),r}function kn(t,n){return t.line<n.line||t.line===n.line&&t.character<=n.character}function Sn(t,n){return kn(t.start,n)&&kn(n,t.end)}function An(t,n,o){let a=V(n.getText(),o),e=a.scan();for(;e!==S.EOS&&e!==t;)e=a.scan();return e!==S.EOS?{start:n.positionAt(a.getTokenOffset()),end:n.positionAt(a.getTokenEnd())}:null}function Dn(t,n){let o=[],a=vt(t,n);for(let r of a)e(r,void 0);return o;function e(r,u){let c=we.create(r.name,r.kind,r.range,t.uri,u?.name);if(c.containerName??(c.containerName=""),o.push(c),r.children)for(let i of r.children)e(i,r)}}function vt(t,n){let o=[];return n.roots.forEach(a=>{En(t,a,o)}),o}function En(t,n,o){let a=ki(n),e=W.create(t.positionAt(n.start),t.positionAt(n.end)),r=_e.create(a,void 0,be.Field,e,e);o.push(r),n.children.forEach(u=>{r.children??(r.children=[]),En(t,u,r.children)})}function ki(t){let n=t.tag;if(t.attributes){let o=t.attributes.id,a=t.attributes.class;o&&(n+=`#${o.replace(/[\"\']/g,"")}`),a&&(n+=a.replace(/[\"\']/g,"").split(/\s+/).map(e=>`.${e}`).join(""))}return n||"?"}function Cn(t,n,o,a){let e=t.offsetAt(n),r=a.findNodeAt(e);if(!r.tag||!Si(r,e,r.tag))return null;let u=[],c={start:t.positionAt(r.start+1),end:t.positionAt(r.start+1+r.tag.length)};if(u.push({range:c,newText:o}),r.endTagStart){let s={start:t.positionAt(r.endTagStart+2),end:t.positionAt(r.endTagStart+2+r.tag.length)};u.push({range:s,newText:o})}return{changes:{[t.uri.toString()]:u}}}function Si(t,n,o){return t.endTagStart&&t.endTagStart+2<=n&&n<=t.endTagStart+2+o.length?!0:t.start+1<=n&&n<=t.start+1+o.length}function Ln(t,n,o){let a=t.offsetAt(n),e=o.findNodeAt(a);if(!e.tag||!e.endTagStart)return null;if(e.start+1<=a&&a<=e.start+1+e.tag.length){let r=a-1-e.start+e.endTagStart+2;return t.positionAt(r)}if(e.endTagStart+2<=a&&a<=e.endTagStart+2+e.tag.length){let r=a-2-e.endTagStart+e.start+1;return t.positionAt(r)}return null}function yt(t,n,o){let a=t.offsetAt(n),e=o.findNodeAt(a),r=e.tag?e.tag.length:0;return e.endTagStart&&(e.start+1<=a&&a<=e.start+1+r||e.endTagStart+2<=a&&a<=e.endTagStart+2+r)?[W.create(t.positionAt(e.start+1),t.positionAt(e.start+1+r)),W.create(t.positionAt(e.endTagStart+2),t.positionAt(e.endTagStart+2+r))]:null}var Ue=class{constructor(n){this.dataManager=n}limitRanges(n,o){n=n.sort((h,p)=>{let m=h.startLine-p.startLine;return m===0&&(m=h.endLine-p.endLine),m});let a,e=[],r=[],u=[],c=(h,p)=>{r[h]=p,p<30&&(u[p]=(u[p]||0)+1)};for(let h=0;h<n.length;h++){let p=n[h];if(!a)a=p,c(h,0);else if(p.startLine>a.startLine){if(p.endLine<=a.endLine)e.push(a),a=p,c(h,e.length);else if(p.startLine>a.endLine){do a=e.pop();while(a&&p.startLine>a.endLine);a&&e.push(a),a=p,c(h,e.length)}}}let i=0,s=0;for(let h=0;h<u.length;h++){let p=u[h];if(p){if(p+i>o){s=h;break}i+=p}}let l=[];for(let h=0;h<n.length;h++){let p=r[h];typeof p=="number"&&(p<s||p===s&&i++<o)&&l.push(n[h])}return l}getFoldingRanges(n,o){let a=this.dataManager.getVoidElements(n.languageId),e=V(n.getText()),r=e.scan(),u=[],c=[],i=null,s=-1;function l(p){u.push(p),s=p.startLine}for(;r!==S.EOS;){switch(r){case S.StartTag:{let p=e.getTokenText(),m=n.positionAt(e.getTokenOffset()).line;c.push({startLine:m,tagName:p}),i=p;break}case S.EndTag:{i=e.getTokenText();break}case S.StartTagClose:if(!i||!this.dataManager.isVoidElement(i,a))break;case S.EndTagClose:case S.StartTagSelfClose:{let p=c.length-1;for(;p>=0&&c[p].tagName!==i;)p--;if(p>=0){let m=c[p];c.length=p;let A=n.positionAt(e.getTokenOffset()).line,b=m.startLine,D=A-1;D>b&&s!==b&&l({startLine:b,endLine:D})}break}case S.Comment:{let p=n.positionAt(e.getTokenOffset()).line,A=e.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(A)if(A[1])c.push({startLine:p,tagName:""});else{let b=c.length-1;for(;b>=0&&c[b].tagName.length;)b--;if(b>=0){let D=c[b];c.length=b;let T=p;p=D.startLine,T>p&&s!==p&&l({startLine:p,endLine:T,kind:oe.Region})}}else{let b=n.positionAt(e.getTokenOffset()+e.getTokenLength()).line;p<b&&l({startLine:p,endLine:b,kind:oe.Comment})}break}}r=e.scan()}let h=o&&o.rangeLimit||Number.MAX_VALUE;return u.length>h?this.limitRanges(u,h):u}};var Oe=class{constructor(n){this.htmlParser=n}getSelectionRanges(n,o){let a=this.htmlParser.parseDocument(n);return o.map(e=>this.getSelectionRange(e,n,a))}getSelectionRange(n,o,a){let e=this.getApplicableRanges(o,n,a),r,u;for(let c=e.length-1;c>=0;c--){let i=e[c];(!r||i[0]!==r[0]||i[1]!==r[1])&&(u=ce.create(W.create(o.positionAt(e[c][0]),o.positionAt(e[c][1])),u)),r=i}return u||(u=ce.create(W.create(n,n))),u}getApplicableRanges(n,o,a){let e=n.offsetAt(o),r=a.findNodeAt(e),u=this.getAllParentTagRanges(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];let c=W.create(n.positionAt(r.startTagEnd-2),n.positionAt(r.startTagEnd));return n.getText(c)==="/>"?u.unshift([r.start+1,r.startTagEnd-2]):u.unshift([r.start+1,r.startTagEnd-1]),u=this.getAttributeLevelRanges(n,r,e).concat(u),u}return!r.startTagEnd||!r.endTagStart?u:(u.unshift([r.start,r.end]),r.start<e&&e<r.startTagEnd?(u.unshift([r.start+1,r.startTagEnd-1]),u=this.getAttributeLevelRanges(n,r,e).concat(u),u):r.startTagEnd<=e&&e<=r.endTagStart?(u.unshift([r.startTagEnd,r.endTagStart]),u):(e>=r.endTagStart+2&&u.unshift([r.endTagStart+2,r.end-1]),u))}getAllParentTagRanges(n){let o=n,a=[];for(;o.parent;)o=o.parent,this.getNodeRanges(o).forEach(e=>a.push(e));return a}getNodeRanges(n){return n.startTagEnd&&n.endTagStart&&n.startTagEnd<n.endTagStart?[[n.startTagEnd,n.endTagStart],[n.start,n.end]]:[[n.start,n.end]]}getAttributeLevelRanges(n,o,a){let e=W.create(n.positionAt(o.start),n.positionAt(o.end)),r=n.getText(e),u=a-o.start,c=V(r),i=c.scan(),s=o.start,l=[],h=!1,p=-1;for(;i!==S.EOS;){switch(i){case S.AttributeName:{if(u<c.getTokenOffset()){h=!1;break}u<=c.getTokenEnd()&&l.unshift([c.getTokenOffset(),c.getTokenEnd()]),h=!0,p=c.getTokenOffset();break}case S.AttributeValue:{if(!h)break;let m=c.getTokenText();if(u<c.getTokenOffset()){l.push([p,c.getTokenEnd()]);break}u>=c.getTokenOffset()&&u<=c.getTokenEnd()&&(l.unshift([c.getTokenOffset(),c.getTokenEnd()]),(m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'")&&u>=c.getTokenOffset()+1&&u<=c.getTokenEnd()-1&&l.unshift([c.getTokenOffset()+1,c.getTokenEnd()-1]),l.push([p,c.getTokenEnd()]));break}}i=c.scan()}return l.map(m=>[m[0]+s,m[1]+s])}};var Tt={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
|
|
53
53
|
|
|
54
54
|
This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:
|
|
55
55
|
|